summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-08 08:10:07 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-15 22:33:26 +0200
commit46990a835dd084e8294e74913daaa2c2ab31b2a2 (patch)
tree8ca4f99dad4533b1abfac48685938133541a541f /wscript
parent2d8d05c2e7ad67ebac2ff250670a219a891d09ca (diff)
Support FFmpeg 8 (for Arch).
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
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