diff options
author | wm4 <wm4@nowhere> | 2017-10-25 16:26:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-25 16:39:33 +0200 |
commit | ec8cad40f243870bd7e9b030771a7052089058fa (patch) | |
tree | a713f51c2ef5cdec48da1f210ed3c18d01e54c5f /video/out | |
parent | d235380cd3ae9490a25937ee44b08615ed97e1cc (diff) | |
download | mpv-ec8cad40f243870bd7e9b030771a7052089058fa.tar.bz2 mpv-ec8cad40f243870bd7e9b030771a7052089058fa.tar.xz |
demux: better computation of seek start target
Avoids that cache seeking is not possible with files that have audio
frames with no timestamps (such as avi, sometimes mkv sub-packets from
lacing). These would set back_pts (first seekable PTS) to NOPTS, and
thus disable cache seeking completely. Instead, prune such packets until
we find one with timestamps.
One corner case is that the new next good packet might be in the forward
cache. In this case we defer dropping until the next time this code is
run, and the reader position has possibly moved past the drop point.
Diffstat (limited to 'video/out')
0 files changed, 0 insertions, 0 deletions