diff options
author | wm4 <wm4@nowhere> | 2015-02-17 23:42:04 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-17 23:42:04 +0100 |
commit | a64b1deaa613108ffa3496b0306c1aea1ba5a68f (patch) | |
tree | c00b42aaa5880f8f9b08b4bf86e2c9b69a374ace /sub/ass_mp.h | |
parent | d26ba961d05a2de165fa87c41d705ed3db00231b (diff) | |
download | mpv-a64b1deaa613108ffa3496b0306c1aea1ba5a68f.tar.bz2 mpv-a64b1deaa613108ffa3496b0306c1aea1ba5a68f.tar.xz |
demux_lavf: hack against hls showing "100%" position
The HLs protocol consists of a "playlist" main file, which mpv downloads
and passes to the HLS demuxer. The HLS demuxer actually requests segment
files containing media data on its own. The packets read from the
demuxer have a source file position set, but it's not from the main
file. This leads to a strange effect: as a last fallback, the player
will calculate the approximate playback position from the file
position/size ratio, and since the main file is tiny, this will always
show 100%. Fix this by resetting the packet file position.
This doesn't affect the case when HLS actually reports a duration.
Diffstat (limited to 'sub/ass_mp.h')
0 files changed, 0 insertions, 0 deletions