mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 22:36:55 +00:00
audio: fix assertion failure on audio decoding
There are several cases in which a decoder may need several packets to
produce some output audio. Commit 5e25a3d2
broke this.
Fixes #1471.
This commit is contained in:
parent
ecca64e182
commit
3cb2add636
@ -217,8 +217,8 @@ int audio_decode(struct dec_audio *da, struct mp_audio_buffer *outbuf,
|
||||
copy_output(afs, outbuf, minsamples, true);
|
||||
break;
|
||||
}
|
||||
|
||||
assert(mpa);
|
||||
if (!mpa)
|
||||
continue;
|
||||
|
||||
da->pts_offset += mpa->samples;
|
||||
da->decode_format = *mpa;
|
||||
|
Loading…
Reference in New Issue
Block a user