diff options
author | wm4 <wm4@nowhere> | 2015-04-12 18:03:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-12 18:06:23 +0200 |
commit | e466a735a39203f81d31d61acc4bfddcb6fb4695 (patch) | |
tree | 9caf6685c8a065382d98ac1e7b634af928925863 /bootstrap.py | |
parent | a8e8176ab1be38a156bcefc74b75d06dee0ba721 (diff) | |
download | mpv-e466a735a39203f81d31d61acc4bfddcb6fb4695.tar.bz2 mpv-e466a735a39203f81d31d61acc4bfddcb6fb4695.tar.xz |
audio/filter: fully renegotiate audio formats on every reconfig
It could happen that a lavrresample filter would keep its old output
format when the decoder changed its output format. This simply happened
because the output format was never reset.
Normally, this was not an issue, because lavrresample filters only
inserted for format conversion were removed on format changes. But if
--no-audio-pitch-correction is set and playback speed is changed, then
there is a "permanent" lavrresample filter in the filter chain, which
shows this behavior.
Fix by explicitly resetting output formats for all filters which support
it.
Note: this can crash with libswresample in some cases. I'm not sure if
this is mpv's fault or libswresample's, but since it works with
libavresample, I'm going to assume it's not our's.
Diffstat (limited to 'bootstrap.py')
0 files changed, 0 insertions, 0 deletions