summaryrefslogtreecommitdiffstats
path: root/common/common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-06-16 18:21:04 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commit4291329d563c12dedca4b911accb7cae077225da (patch)
tree1f3029d2ac0559c018db239259426da2206bcb88 /common/common.h
parentf2cee223111435a1a6e8a4754537737665fd5d94 (diff)
downloadmpv-4291329d563c12dedca4b911accb7cae077225da.tar.bz2
mpv-4291329d563c12dedca4b911accb7cae077225da.tar.xz
demux: fix backward demuxing not grabbing all audio packets
The previous commit broke audio playback (maybe this is what 4. was about?). But it wasn't the fault of the commit; it just exposed pre-existing issues. If the packet queue search can't get all packets, it checked queue->is_bof to see whether there could be previous packets. But obviously, is_bof can be set, even if the search start packet wasn't the first one. This was especially observable with audio, because audio by default needs preroll packets, and plays artifacts if they're missing. Fix by using the BOF playback condition for this purpose too.
Diffstat (limited to 'common/common.h')
0 files changed, 0 insertions, 0 deletions