From 46990a835dd084e8294e74913daaa2c2ab31b2a2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 8 Oct 2025 08:10:07 +0200 Subject: Support FFmpeg 8 (for Arch). --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 8e0673bb1..d4e817230 100644 --- a/wscript +++ b/wscript @@ -498,7 +498,11 @@ def configure(conf): conf.check_cfg(package='libavcodec', args='--cflags --libs', uselib_store='AVCODEC', mandatory=True) conf.check_cfg(package='libavutil', args='--cflags --libs', uselib_store='AVUTIL', mandatory=True) 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) + # Use a lack of libpostproc as a sign that we are on FFmpeg 8 + # We need this check while we're using ffmpeg 7 and arch already switched to 8 + if conf.check_cfg(package='libpostproc', args='--cflags --libs', uselib_store='POSTPROC', mandatory=False) is None: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_FFMPEG_8') + conf.check_cfg(package='libswresample', args='--cflags --libs', uselib_store='SWRESAMPLE', mandatory=True) # Check to see if we have our version of FFmpeg that allows us to get at EBUR128 results -- cgit v1.2.3