0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/audio/filter
wm4 baead23ea0 af_lavrresample: don't call swr_set_compensation() unless necessary
This was _always_ called, even if the resampling was static, or the
filter was inserted for format conversion only. This should have been
fine, as I expected the function not to enable resampling when the
compensation is unset, and the source/target rates are the same. But
this is not the case, and it always enables resampling.

So explicitly avoid the call. If we have already called it successfully,
it's better not do avoid it (to overwrite the previous compensation
value), but it will also be cheap/no-op then.

Probably fixes #4716.
2017-08-12 12:12:52 +02:00
..
af_channels.c audio: deprecate most audio filters 2017-04-04 15:04:07 +02:00
af_equalizer.c audio: deprecate most audio filters 2017-04-04 15:04:07 +02:00
af_format.c af_format: change license to LGPL 2017-05-11 11:25:45 +02:00
af_lavcac3enc.c Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
af_lavfi.c vf_lavfi, af_lavfi: remove unused/deprecated include 2017-04-05 16:12:47 +02:00
af_lavrresample.c af_lavrresample: don't call swr_set_compensation() unless necessary 2017-08-12 12:12:52 +02:00
af_pan.c audio: deprecate most audio filters 2017-04-04 15:04:07 +02:00
af_rubberband.c af_rubberband: default to channels=together 2016-09-19 18:59:42 +02:00
af_scaletempo.c af_scaletempo: change license to LGPL 2017-05-09 12:53:37 +02:00
af_volume.c af: remove unused GET_VOLUME code 2017-04-27 00:22:30 +02:00
af.c af, vf: improvements to libavfilter bridge 2017-05-31 17:42:55 +02:00
af.h af, vf: improvements to libavfilter bridge 2017-05-31 17:42:55 +02:00
equalizer.h Update license headers 2015-04-13 12:10:01 +02:00
tools.c af: move af_from_dB() function to af_volume.c 2015-06-23 15:11:23 +02:00