diff options
author | wm4 <wm4@nowhere> | 2016-06-27 15:00:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-27 15:12:21 +0200 |
commit | 3e58ce96acaec14adb840875c10b2b543be0b1e3 (patch) | |
tree | e2b60a8e6ffa55cef49b7f66095b58ef164b4d70 /player/external_files.c | |
parent | acb74236ac9e48ccc653207a22428d3811b0a2cd (diff) | |
download | mpv-3e58ce96acaec14adb840875c10b2b543be0b1e3.tar.bz2 mpv-3e58ce96acaec14adb840875c10b2b543be0b1e3.tar.xz |
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.
Diffstat (limited to 'player/external_files.c')
0 files changed, 0 insertions, 0 deletions