summaryrefslogtreecommitdiffstats
path: root/demux/demux_playlist.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-11-10 12:17:34 +0100
committerwm4 <wm4@nowhere>2017-11-10 12:17:34 +0100
commitc8bb78bad833c8c94fb027c45c27cfce3a32bca3 (patch)
treea76d6d5e062aafecdfafb4aebc2c7a8db41eab9f /demux/demux_playlist.c
parent2485b899c303f60a837baaaf704a3c8eb631ed9b (diff)
downloadmpv-c8bb78bad833c8c94fb027c45c27cfce3a32bca3.tar.bz2
mpv-c8bb78bad833c8c94fb027c45c27cfce3a32bca3.tar.xz
demux: speed up cache seeking with a coarse index
Helps a little bit, I guess. But in general, t(h)rashing the cache kills us anyway. This has a fixed number of index entries. Entries are added/removed as packets go through the packet queue. Only keyframes after index_distance seconds are added. If there are too many keyframe packets, the existing index is reduced by half, and index_distance is doubled. This should provide somewhat even spacing between the entries.
Diffstat (limited to 'demux/demux_playlist.c')
0 files changed, 0 insertions, 0 deletions