summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-22 16:19:18 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-22 16:19:18 +0000
commitbe8675cc978fbd52817943e88ea40b81f8a4c9c4 (patch)
treedc9c8d82518affac00ece539fdd18c04b11f9bda /wscript
parentf7ebd3343016172142e254ea014967f193e9861d (diff)
Check for patched version of FFmpeg before using extra functions (#773).
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/wscript b/wscript
index d3f611374..177d459be 100644
--- a/wscript
+++ b/wscript
@@ -299,6 +299,20 @@ def configure(conf):
conf.check_cfg(package='libswscale', args='--cflags --libs', uselib_store='SWSCALE', mandatory=True)
conf.check_cfg(package='libpostproc', args='--cflags --libs', uselib_store='POSTPROC', mandatory=True)
+ # Check to see if we have our version of FFmpeg that allows us to get at EBUR128 results
+ conf.check_cxx(fragment="""
+ extern "C" {\n
+ #include <libavfilter/f_ebur128.h>\n
+ }\n
+ int main () { av_ebur128_get_true_peaks (0); }\n
+ """,
+ msg='Checking for patched FFmpeg',
+ libpath='/usr/local/lib',
+ lib=['avfilter'],
+ uselib_store='PATCHED_FFMPEG',
+ defines_name='DCPOMATIC_HAVE_PATCHED_FFMPEG',
+ mandatory=False)
+
# Boost
if conf.options.static_boost:
conf.env.STLIB_BOOST_THREAD = ['boost_thread']