1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-21 15:12:48 +00:00
mpv/audio/decode
wm4 3e58ce96ac dec_audio: fix segment boudnary switching
Some bugs in this code are exposed by e.g. playing lossless audio files
with --ad-lavc-threads=16. (libavcodec doesn't really support threaded
audio decoding, except for lossless files.) In these cases, a major
amount of audio can be buffered, which makes incorrect handling of this
buffering obvious.

For one, draining the decoder can take a while, so if there's a new
segment, we shouldn't read audio.

The segment end check was completely wrong, and used the start value.
2016-06-27 15:12:21 +02:00
..
ad_lavc.c ad_lavc: resume from mid-stream EOF conditions with new decode API 2016-06-22 21:37:36 +02:00
ad_spdif.c ad_spdif: take care of deprecated libavcodec API usage 2016-04-20 19:37:45 +02:00
ad.h audio: move direct packet reading from decoders to common code 2016-01-19 22:24:38 +01:00
dec_audio.c dec_audio: fix segment boudnary switching 2016-06-27 15:12:21 +02:00
dec_audio.h Rewrite ordered chapters and timeline stuff 2016-02-15 21:04:07 +01:00