diff options
author | wm4 <wm4@nowhere> | 2017-11-04 18:18:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-04 18:18:42 +0100 |
commit | 6e998be7bed7d25e98bfe1c7d6ca079f081da7d1 (patch) | |
tree | fbcdb6ba840ee789d0157890e68891ae77241fb6 /misc/json.c | |
parent | 75cdd13e29b7bbd8ff16f81f7b3b1043f752e71e (diff) | |
download | mpv-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 'misc/json.c')
0 files changed, 0 insertions, 0 deletions