diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2639,15 +2639,25 @@ echores "yes" _resampler=no +_avresample=no +_avresample_has_set_channel_mapping=no + echocheck "libavresample >= 1.0.0" if test "$_disable_avresample" = no ; then if pkg_config_add "libavresample >= 1.0.0" ; then _resampler=yes + _avresample=yes def_resampler='#define CONFIG_LIBAVRESAMPLE' fi fi echores "$_resampler" +if test "$_avresample" = yes ; then + echocheck "libavresample avresample_set_channel_mapping() API" + statement_check libavresample/avresample.h 'avresample_set_channel_mapping(NULL, NULL)' && _avresample_has_set_channel_mapping=yes + echores "$_avresample_has_set_channel_mapping" +fi + if test "$_resampler" = no ; then echocheck "libswresample >= 0.15.100" @@ -2658,10 +2668,17 @@ if test "$_resampler" = no ; then echores "$_resampler" fi + if test "$_resampler" = no ; then die "No resampler found. Install libavresample or libswresample (FFmpeg)." fi +if test "$_avresample_has_set_channel_mapping" = yes ; then + def_avresample_has_set_channel_mapping='#define HAVE_AVRESAMPLE_SET_CHANNEL_MAPPING 1' +else + def_avresample_has_set_channel_mapping='#define HAVE_AVRESAMPLE_SET_CHANNEL_MAPPING 0' +fi + echocheck "libavutil QP API" _avutil_has_qp_api=no @@ -3307,6 +3324,7 @@ $def_xv /* FFmpeg */ $def_encoding $def_resampler +$def_avresample_has_set_channel_mapping $def_fast_64bit $def_pthreads |