mpv/audio
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
..
decode Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
filter af_lavrresample: don't call swr_set_compensation() unless necessary 2017-08-12 12:12:52 +02:00
out ao_wasapi: remove old comment 2017-08-07 16:33:29 -07:00
audio.c audio: make mp_audio_realloc[_min] ensure frame is writeable 2016-07-31 18:51:02 +02:00
audio.h af_lavcac3enc: use common code for AVFrame setup 2016-07-24 19:06:00 +02:00
audio_buffer.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
audio_buffer.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
chmap.c chmap: remove misleading "downmix" channel layout name 2017-06-24 11:36:10 +02:00
chmap.h player: remove special-case for DL/DR speakers 2016-08-04 19:14:35 +02:00
chmap_sel.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
chmap_sel.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
fmt-conversion.c audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
fmt-conversion.h audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
format.c audio: drop AF_FORMAT_S24 2017-07-07 17:56:22 +02:00
format.h audio: drop AF_FORMAT_S24 2017-07-07 17:56:22 +02:00