diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-08 08:10:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-15 22:33:26 +0200 |
| commit | 46990a835dd084e8294e74913daaa2c2ab31b2a2 (patch) | |
| tree | 8ca4f99dad4533b1abfac48685938133541a541f /wscript | |
| parent | 2d8d05c2e7ad67ebac2ff250670a219a891d09ca (diff) | |
Support FFmpeg 8 (for Arch).
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
