+ # Check to see if we have our AVComponentDescriptor has a depth_minus1 member
+ # Older versions (e.g. that shipped with Ubuntu 16.04) do
+ conf.check_cxx(fragment="""
+ extern "C" {\n
+ #include <libavutil/pixdesc.h>\n
+ }\n
+ int main () { AVComponentDescriptor d; d.depth_minus1; }\n
+ """,
+ msg='Checking for AVComponentDescriptor::depth_minus1',
+ cxxflags='-Wno-unused-result -Wno-unused-value -Wdeprecated-declarations -Werror',
+ libpath=conf.env['LIBPATH_AVUTIL'],
+ lib='avutil',
+ includes=conf.env['INCLUDES_AVUTIL'],
+ define_name='DCPOMATIC_HAVE_AVCOMPONENTDESCRIPTOR_DEPTH_MINUS1',
+ 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 clearn them out.
+ conf.env['CXXFLAGS_AVCODEC'] = []
+ conf.env['CXXFLAGS_AVUTIL'] = []
+