summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-11-04 17:43:22 +0100
committerwm4 <wm4@nowhere>2017-11-04 17:43:22 +0100
commit104e18214cdb0f95a2a9661a5cd475baa3f67a4e (patch)
tree9cd556fa5119c3cd9b4c3c8cf74648acbda1650c /player
parentc1f981f863cc92ab5c7ad5835bd549605296f6b8 (diff)
downloadmpv-104e18214cdb0f95a2a9661a5cd475baa3f67a4e.tar.bz2
mpv-104e18214cdb0f95a2a9661a5cd475baa3f67a4e.tar.xz
demux: avoid excessive readahead after cache seek
The base_ts field is used to guess the decoder position, and when set to NOPTS, it just read ahead arbitrarily. Also demux_add_packet() sets base_ts to the new timestamp when appending a packet, which would also make it readahead by a too large amount. Fix this by setting base_ts after a seek. This assumes that normally, a cached seek target will always have the timestamp set. This is actually not quite clear (as it calls recompute_keyframe_target_pts(), which looks at multiple packets), but maybe it works well enough.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions