diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-03-09 09:30:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-13 23:51:30 +0100 |
commit | 048ceef655bce41bc6e215b5e05cec0fad4d1428 (patch) | |
tree | c448eee1a1e8161b6e1c3455b2d87af5660e8e8f /configure | |
parent | 514d8a7c9dfde2acc89ee4d19dd9db6b9db5b882 (diff) | |
download | mpv-048ceef655bce41bc6e215b5e05cec0fad4d1428.tar.bz2 mpv-048ceef655bce41bc6e215b5e05cec0fad4d1428.tar.xz |
af_lavrresample: add new resampling filter to replace the old ones
Remove `af_resample` and `af_lavcresample`. The former is a mess while the
latter uses an API that was long deprecated in libavcodec and is now removed.
`af_lavrresample` rougly has the same features and structure of
`af_lavcresample`.
libswresample fallback by wm4.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -342,6 +342,9 @@ Codecs: --disable-libbs2b disable libbs2b audio filter support [autodetect] --disable-mpg123 disable libmpg123 MP3 decoding support [autodetect] +Resampler: + --disable-libavresample check for libswresample only [autodetect] + Video output: --enable-gl enable OpenGL video output [autodetect] --enable-caca enable CACA video output [autodetect] @@ -416,6 +419,7 @@ _cross_compile=no _prefix="/usr/local" ffmpeg=auto _encoding=yes +_disable_avresample=no _x11=auto _wayland=auto _xss=auto @@ -667,6 +671,8 @@ for ac_option do --enable-joystick) _joystick=yes ;; --disable-joystick) _joystick=no ;; --enable-libav) ffmpeg=yes ;; + --disable-libavresample) _disable_avresample=yes ;; + --enable-libavresample) _disable_avresample=no ;; --enable-lirc) _lirc=yes ;; --disable-lirc) _lirc=no ;; @@ -2682,6 +2688,31 @@ fi echores "yes" +_resampler=no +echocheck "libavresample >= 1.0.0" +if test "$_disable_avresample" = no ; then + if pkg_config_add "libavresample >= 1.0.0" ; then + _resampler=yes + def_resampler='#define CONFIG_LIBAVRESAMPLE' + fi +fi +echores "$_resampler" + + +if test "$_resampler" = no ; then + echocheck "libswresample >= 0.15.100" + if pkg_config_add "libswresample >= 0.15.100" ; then + _resampler=yes + def_resampler='#define CONFIG_LIBSWRESAMPLE' + fi + echores "$_resampler" +fi + +if test "$_resampler" = no ; then + die "No resampler found. Install libavresample or libswresample (FFmpeg)." +fi + + echocheck "Libav 0.8 compatibility hack" if test "$_encoding" = yes && $_pkg_config "libavcodec >= 54.0.0" ; then echores "no" @@ -3311,6 +3342,7 @@ $def_xv /* FFmpeg */ $def_encoding +$def_resampler $def_fast_64bit $def_pthreads |