summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-23 15:27:04 +0200
committerwm4 <wm4@nowhere>2015-04-23 15:27:04 +0200
commit457e2f7e02e2952671b5923424d0a2b5295a1a6a (patch)
tree92e2349021d1df4efdd1dbf7390ee98deaa006bd /demux/demux.c
parentdaabbe364007fc7546df63981422b53b9a20c6fc (diff)
downloadmpv-457e2f7e02e2952671b5923424d0a2b5295a1a6a.tar.bz2
mpv-457e2f7e02e2952671b5923424d0a2b5295a1a6a.tar.xz
demux_mkv: better seeking after video end
This change allows forward seeking even if there are no more video keyframes in forward direction. This helps with files that e.g. encode cover art as a single video frame (within a _real_ video stream - ffmpeg seems to like to produce such files). Seeking backwards will still jump to the nearest video frame, so this improvement has limited use. The old code didn't do this because of the logic the min_diff variable followed. Instead of somehow using the timestamp of the last packet read for min_diff, use the first index entry for it. This actually makes it fall back to the first/last index entry as the (removed) comment claims. Note that last_pts is basically random at this point (because the demuxer can be far ahead of playback position), so this didn't make sense in the first place.
Diffstat (limited to 'demux/demux.c')
0 files changed, 0 insertions, 0 deletions