diff options
author | wm4 <wm4@nowhere> | 2017-08-12 12:12:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-12 12:12:52 +0200 |
commit | baead23ea06307af0d0a7acd21307d8f723b3a1b (patch) | |
tree | 6ad5dd4c1ac46df30a01eed8f714ed960a6900db /audio/chmap.c | |
parent | c20df5b3e16eba790b7419d2338600c7b4a0e79d (diff) | |
download | mpv-baead23ea06307af0d0a7acd21307d8f723b3a1b.tar.bz2 mpv-baead23ea06307af0d0a7acd21307d8f723b3a1b.tar.xz |
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.
Diffstat (limited to 'audio/chmap.c')
0 files changed, 0 insertions, 0 deletions