1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00

build: drop support for Libav 9

I have no tolerance for this garbage anymore. There are tons of issues
with it (see e.g. previous commit), and there is no reason to use it
either. Use Libav git, or Libav 10 when it's released.

This also drops support for earlier FFmpeg release, which have exactly
the same issues as Libav 9. FFmpeg 2.1.4 is still supported, because
it's the latest release, and is reasonably recent. (Although this will
probably also be dropped as soon as FFmpeg 2.2 is released.)

Assumed version table (lots of nonsensical numbers):

        FFmpeg 2.1.4    FFmpeg (n2.2-rc2)   Libav (v10_beta2)

lavu    52.48.101       52.66.100           53.3.0
lavc    55.39.101       55.52.102           55.34.1
lavf    55.19.104       55.33.100           55.12.0
lsws    2.5.101         2.5.101             2.1.2
lavi    3.90.100        4.2.100             4.2.0
lswr    0.17.104        0.18.100            -
lavr    1.1.0           1.2.0               1.1.0

libpostproc and libavdevice are not interesting.

Following this commit, code needed just to support old Libav versions
will start to be removed.
This commit is contained in:
wm4 2014-03-16 02:14:18 +01:00
parent ba160f5c84
commit f50455507e
3 changed files with 11 additions and 12 deletions

View File

@ -1,7 +1,6 @@
language: c
env:
- LIBAV=libav-stable
- LIBAV=libav-git
- LIBAV=ffmpeg-stable
- LIBAV=ffmpeg-git

View File

@ -2654,7 +2654,7 @@ fi
echores "$_lcms2"
all_libav_libs="libavutil >= 52.3.0:libavcodec > 54.34.0:libavformat > 54.19.0:libswscale >= 2.0.0"
all_libav_libs="libavutil >= 52.48.101:libavcodec >= 55.34.1:libavformat >= 55.12.0:libswscale >= 2.1.2"
echocheck "Libav ($all_libav_libs)"
if test "$ffmpeg" = auto ; then
IFS=":" # shell should not be used for programming
@ -2673,9 +2673,9 @@ _avresample_has_set_channel_mapping=no
def_libswresample='#define HAVE_LIBSWRESAMPLE 0'
def_libavresample='#define HAVE_LIBAVRESAMPLE 0'
echocheck "libavresample >= 1.0.0"
echocheck "libavresample >= 1.1.0"
if test "$_disable_avresample" = no ; then
if pkg_config_add "libavresample >= 1.0.0" ; then
if pkg_config_add "libavresample >= 1.1.0" ; then
_resampler=yes
_avresample=yes
def_libavresample='#define HAVE_LIBAVRESAMPLE 1'
@ -2691,8 +2691,8 @@ fi
if test "$_resampler" = no ; then
echocheck "libswresample >= 0.17.102"
if pkg_config_add "libswresample >= 0.17.102" ; then
echocheck "libswresample >= 0.17.104"
if pkg_config_add "libswresample >= 0.17.104" ; then
_resampler=yes
def_libswresample='#define HAVE_LIBSWRESAMPLE 1'
fi

12
wscript
View File

@ -325,10 +325,10 @@ If you really mean to compile without libass support use --disable-libass."
]
libav_pkg_config_checks = [
'libavutil', '>= 52.3.0',
'libavcodec', '> 54.34.0',
'libavformat', '> 54.19.0',
'libswscale', '>= 2.0.0'
'libavutil', '>= 52.48.101',
'libavcodec', '>= 55.34.1',
'libavformat', '>= 55.12.0',
'libswscale', '>= 2.1.2'
]
libav_dependencies = [
@ -342,7 +342,7 @@ Libav libraries ({0}). Aborting.".format(" ".join(libav_pkg_config_checks))
}, {
'name': '--libavresample',
'desc': 'libavresample',
'func': check_pkg_config('libavresample', '>= 1.0.0'),
'func': check_pkg_config('libavresample', '>= 1.1.0'),
}, {
'name': 'avresample-set-channel-mapping',
'desc': 'libavresample channel mapping API',
@ -353,7 +353,7 @@ Libav libraries ({0}). Aborting.".format(" ".join(libav_pkg_config_checks))
}, {
'name': '--libswresample',
'desc': 'libswresample',
'func': check_pkg_config('libswresample', '>= 0.17.102'),
'func': check_pkg_config('libswresample', '>= 0.17.104'),
'deps_neg': ['libavresample'],
}, {
'name': 'resampler',