summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-28 00:59:11 +0100
committerwm4 <wm4@nowhere>2020-02-28 00:59:11 +0100
commit3ae4094ec0eba49781ddb4eaf489fc7f0e97a237 (patch)
treee97bedb30b52cdb7063071179e915d2ca1a559ab /player/video.c
parent2b628d4352de09c5ec4663d2dfeebd4e11065f74 (diff)
downloadmpv-3ae4094ec0eba49781ddb4eaf489fc7f0e97a237.tar.bz2
mpv-3ae4094ec0eba49781ddb4eaf489fc7f0e97a237.tar.xz
demux: make seek ranges work for static images + audio
In this case the video track has seek_start == seek_end, and due to the "seek_start >= seek_end" condition, this was considered broken, and no seek range was created, breaking cached seeking. Fix this by allowing the case if they're equal, and a valid timestamp. (NB: seeking backward in this will still jump to position 0, because it is the video timestamp. This is unfortunately how it's supposed to work. HR-seeks will also do this, but decode and skip the entire audio until the seek target, so it will mostly appear to work.)
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions