summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-07 13:53:34 +0200
committerwm4 <wm4@nowhere>2016-08-07 13:53:34 +0200
commit39ae261cc59598426b6e6beea2c849a6c8a9d20f (patch)
tree81c98e100e39288155928d0cd0fb51ebba07629f /player/video.c
parent78bcbe289e3c35696e193be16a547095c77c628a (diff)
downloadmpv-39ae261cc59598426b6e6beea2c849a6c8a9d20f.tar.bz2
mpv-39ae261cc59598426b6e6beea2c849a6c8a9d20f.tar.xz
demux_timeline: enable refresh seeks in some situations
Play a trick to make the packet pos field monotonically increasing over segment boundaries if the source demuxers return monotonically increasing pos values. This allows the demuxer to uniquely identify packets with the pos field, and can do refresh seeks using that. Normally, the packet pos field is used as a fallback for determining the playback position if the demuxer returns no proper duration. But demux_timeline.c always will, and the packet pos fields usually make no sense in relation to the returned file size anyway if the timeline source demuxers originate from separate streams.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions