1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
mpv/audio/decode
wm4 8f1151a00e audio: fix mid-stream audio reconfiguration
Commit 22b3f522 not only redid major aspects of audio decoding, but also
attempted to fix audio format change handling. Before that commit, data
that was already decoded but not yet filtered was thrown away on a
format change. After that commit, data was supposed to finish playing
before rebuilding filters and so on.

It was still buggy, though: the decoder buffer was initialized to the
new format too early, triggering an assertion failure. Move the reinit
call below filtering to fix this.

ad_mpg123.c needs to be adjusted so that it doesn't decode new data
before the format change is actually executed.

Add some more assertions to af_play() (audio filtering) to make sure
input data and configured format don't mismatch. This will also catch
filters which don't set the format on their output data correctly.

Regression due to planar_audio branch.
2013-11-18 14:20:59 +01:00
..
ad_lavc.c Merge branch 'planar_audio' 2013-11-12 23:42:04 +01:00
ad_mpg123.c audio: fix mid-stream audio reconfiguration 2013-11-18 14:20:59 +01:00
ad_spdif.c ad_spdif: fix regressions 2013-11-14 23:54:06 +01:00
ad.h audio: add support for using non-interleaved audio from decoders directly 2013-11-12 23:39:09 +01:00
dec_audio.c audio: fix mid-stream audio reconfiguration 2013-11-18 14:20:59 +01:00
dec_audio.h audio: switch output to mp_audio_buffer 2013-11-12 23:29:53 +01:00