summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-21 01:37:56 +0200
committerwm4 <wm4@nowhere>2019-10-21 01:38:25 +0200
commit9565ff522b946489c43508444c5e04812d1bdbbb (patch)
tree57dac57fa965e3bb1628d14e167dedd3f0be9e2e /wscript
parent5dba244c226383f9f3b15b07dfa5133ad08b6497 (diff)
downloadmpv-9565ff522b946489c43508444c5e04812d1bdbbb.tar.bz2
mpv-9565ff522b946489c43508444c5e04812d1bdbbb.tar.xz
build: add --enable-ffmpeg-strict-abi option
This can be used by distros to disable all known FFmpeg ABI violations. Currently only 1 is known, in demux_lavf.c. In addition to if-defing out the access to the private FFmpeg field, this disables the possibly fragile nested open callbacks, which make sense only if the aforementioned field can be accessed.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index 77fe5521b8..b1fc93a8e0 100644
--- a/wscript
+++ b/wscript
@@ -490,6 +490,10 @@ FFmpeg/Libav libraries. Git master is recommended."
'name': '--libavdevice',
'desc': 'libavdevice',
'func': check_pkg_config('libavdevice', '>= 57.0.0'),
+ }, {
+ 'name': '--ffmpeg-strict-abi',
+ 'desc': 'Disable all known FFmpeg ABI violations',
+ 'default': 'disable',
}
]