summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-14 02:31:57 +0100
committerwm4 <wm4@nowhere>2012-11-14 11:45:52 +0100
commit9fc682d46ff908556dcbd1ac78ed983f480976a5 (patch)
treeb4085a2224200dea7a1009f6dbfbdd46fbd8da1d /configure
parent94fc9f75584dad8a9aaef7a441ddf946c56bb311 (diff)
downloadmpv-9fc682d46ff908556dcbd1ac78ed983f480976a5.tar.bz2
mpv-9fc682d46ff908556dcbd1ac78ed983f480976a5.tar.xz
Improve compatibility with Libav 0.8.4 and ffmpeg 0.11.2
Libav 0.8.4 is ridiculously old (in relative terms), so I don't know how many things are broken silently. Encoding is disabled, because the required API hasn't been added yet. (On the other hand, the old API can't be used in newer versions.) This should improve compatibility with ffmpeg 0.11.2 as well, which didn't define AV_CODEC_ID_SUBRIP yet.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index e6ead21ef0..ef0db230e1 100755
--- a/configure
+++ b/configure
@@ -2860,7 +2860,7 @@ echores "$_lcms2"
# Test with > against Libav 0.8 versions which will NOT work rather than
# specify minimum version, to allow (future) point releases to possibly work.
-all_libav_libs="libavutil > 51.26.0:libavcodec > 54.00.0:libavformat > 53.20.0:libswscale >= 2.0.0"
+all_libav_libs="libavutil > 51.22.0:libavcodec >= 53.35.0:libavformat > 53.20.0:libswscale >= 2.0.0"
echocheck "Libav ($all_libav_libs)"
if test "$ffmpeg" = auto ; then
IFS=":" # shell should not be used for programming
@@ -2871,6 +2871,15 @@ fi
echores "yes"
+echocheck "Libav 0.8 compatibility hack"
+if test "$_encoding" = yes && $_pkg_config "libavcodec >= 54.0.0" ; then
+ echores "no"
+else
+ _encoding=no
+ echores "yes"
+fi
+
+
echocheck "libpostproc >= 52.0.0"
if test "$libpostproc" = auto ; then
libpostproc=no