summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-25 16:26:03 +0200
committerwm4 <wm4@nowhere>2017-10-25 16:39:33 +0200
commitec8cad40f243870bd7e9b030771a7052089058fa (patch)
treea713f51c2ef5cdec48da1f210ed3c18d01e54c5f /DOCS
parentd235380cd3ae9490a25937ee44b08615ed97e1cc (diff)
downloadmpv-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 'DOCS')
0 files changed, 0 insertions, 0 deletions