From 4e2ff7851127cd85c3e7d78b42eb884d0cda0ac3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 Aug 2021 21:24:51 +0200 Subject: Fix build with newer FFmpeg. --- wscript | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index b7ea7de6c..bfc84112d 100644 --- a/wscript +++ b/wscript @@ -437,6 +437,19 @@ def configure(conf): define_name='DCPOMATIC_HAVE_AVCOMPONENTDESCRIPTOR_DEPTH_MINUS1', mandatory=False) + # See if we have av_register_all and avfilter_register_all + conf.check_cxx(fragment=""" + extern "C" {\n + #include \n + #include \n + }\n + int main () { av_register_all(); avfilter_register_all(); }\n + """, + msg='Checking for av_register_all and avfilter_register_all', + uselib='AVFORMAT AVFILTER', + define_name='DCPOMATIC_HAVE_AVREGISTER', + mandatory=False) + # Hack: the previous two check_cxx calls end up copying their (necessary) cxxflags # to these variables. We don't want to use these for the actual build, so clean them out. conf.env['CXXFLAGS_AVCODEC'] = [] -- cgit v1.2.3