diff options
author | wm4 <wm4@nowhere> | 2020-02-28 00:59:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-28 00:59:11 +0100 |
commit | 3ae4094ec0eba49781ddb4eaf489fc7f0e97a237 (patch) | |
tree | e97bedb30b52cdb7063071179e915d2ca1a559ab /TOOLS/travis-deps | |
parent | 2b628d4352de09c5ec4663d2dfeebd4e11065f74 (diff) | |
download | mpv-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 'TOOLS/travis-deps')
0 files changed, 0 insertions, 0 deletions