From bd969f3594735db7565d126d6c3cbe03a9fa6aa3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 1 Nov 2023 01:35:39 +0300 Subject: [PATCH] wscript: fix system opus detection, it didn't compile due to nonnull argument --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 38b0d3da..3a9ad4c1 100644 --- a/wscript +++ b/wscript @@ -471,7 +471,7 @@ int main(int argc, char **argv) { strchrnul(argv[1], 'x'); return 0; }''' if conf.check_cfg(package='opus', uselib_store='opus', args='opus >= 1.4 --cflags --libs', mandatory=False): # now try to link with export that only exists with CUSTOM_MODES defined frag='''#include -int main(void) { return !opus_custom_encoder_init(0, 0, 0); }''' +int main(void) { return !opus_custom_encoder_init((OpusCustomEncoder *)1, (const OpusCustomMode *)1, 1); }''' if conf.check_cc(msg='Checking if opus supports custom modes', defines='CUSTOM_MODES=1', use='opus', fragment=frag, mandatory=False): conf.env.HAVE_SYSTEM_OPUS = True