diff options
author | wm4 <wm4@nowhere> | 2017-11-10 12:17:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-10 12:17:34 +0100 |
commit | c8bb78bad833c8c94fb027c45c27cfce3a32bca3 (patch) | |
tree | a76d6d5e062aafecdfafb4aebc2c7a8db41eab9f /audio/audio_buffer.c | |
parent | 2485b899c303f60a837baaaf704a3c8eb631ed9b (diff) | |
download | mpv-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 'audio/audio_buffer.c')
0 files changed, 0 insertions, 0 deletions