Changeset 795d9594 in ffmpeg
- Timestamp:
-
Nov 18, 2011, 9:33:44 AM
(13 years ago)
- Author:
- Martin Storsjö <martin@martin.st>
- Branches:
- master
- Children:
- b55aa7df
- Parents:
- dbc2424
- git-author:
- Panagiotis H.M. Issaris <takis.issaris@uhasselt.be> (11/15/11 17:35:03)
- git-committer:
- Martin Storsjö <martin@martin.st> (11/18/11 09:33:44)
- Message:
-
applehttp: Fix seeking in streams not starting at DTS=0
The Apple HTTP Live Streaming demuxer's implementation of
seeking searches for the MPEG TS segment which contains the
requested timestamp. In its current implementation it assumes
that the first segment will start from 0.
But, MPEG TS streams do not necessarily start with timestamp
(near) 0, causing seeking to fail for those streams.
This also occurs when using live streaming of HTTP Live Streams.
In this case sliding playlists may be used, which means that in
that case only the last x encoded segments are stored, the earlier
segments get deleted from disk and removed from the playlist.
Because of this, when starting playback of a stream in the middle
of such a broadcast, the initial segment fetched after parsing
the m3u8 playlist will not start from timestamp (near) 0, causing
(the admittedly limited live) seeking to fail.
This patch changes this demuxers seeking implementation to use
the initial DTS as an offset for searching the segments containing
the requested timestamp.
Signed-off-by: Martin Storsjö <martin@martin.st>
-
(No files)
-