summaryrefslogtreecommitdiffstats
path: root/demux/packet.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-11-04 18:18:42 +0100
committerwm4 <wm4@nowhere>2017-11-04 18:18:42 +0100
commit6e998be7bed7d25e98bfe1c7d6ca079f081da7d1 (patch)
treefbcdb6ba840ee789d0157890e68891ae77241fb6 /demux/packet.h
parent75cdd13e29b7bbd8ff16f81f7b3b1043f752e71e (diff)
downloadmpv-6e998be7bed7d25e98bfe1c7d6ca079f081da7d1.tar.bz2
mpv-6e998be7bed7d25e98bfe1c7d6ca079f081da7d1.tar.xz
demux: reduce overhead when searching over keyframe ranges
The demuxer cache seeking mechanism looks at keyframe ranges to determine the earlierst PTS of a packet. Instead of looping over all packets twice (once to find the next keyframe, a second time to find the seek PTS), do it in one go. For that basically turn recompute_keyframe_target_pts() into an iteration functionn. Functionality should be unchanged with this commit.
Diffstat (limited to 'demux/packet.h')
0 files changed, 0 insertions, 0 deletions