FFmpeg git repo
Go to file
Panagiotis H.M. Issaris 795d9594cf 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>
2011-11-18 11:33:44 +02:00
doc avutil: Add av_timegm as a public function 2011-11-16 11:22:41 +02:00
libavcodec vp5: Fix illegal read. 2011-11-17 11:58:49 -08:00
libavdevice pulse: compute frame_duration once and fix it 2011-11-14 16:16:41 +01:00
libavfilter libavfilter: reindent. 2011-11-05 07:01:39 -07:00
libavformat applehttp: Fix seeking in streams not starting at DTS=0 2011-11-18 11:33:44 +02:00
libavutil avutil: Add av_timegm as a public function 2011-11-16 11:22:41 +02:00
libpostproc
libswscale swscale: handle unaligned buffers in yuv2plane1 2011-11-13 08:27:20 +01:00
presets presets: spelling error in libvpx 1080p50_60 2011-10-22 00:28:56 +02:00
tests Replace vendor string in Ogg and FLAC muxers. 2011-11-02 10:43:39 +01:00
tools tools/pktdumper: update to recent avformat api 2011-10-28 19:08:38 +02:00
.gitignore
avconv.c avconv: remove some codec-specific hacks 2011-11-10 11:55:58 +01:00
avplay.c avplay: reset rdft when closing stream. 2011-11-08 10:43:57 -05:00
avprobe.c Call avformat_network_init/deinit in the programs 2011-11-06 18:31:39 +02:00
avserver.c Call avformat_network_init/deinit in the programs 2011-11-06 18:31:39 +02:00
Changelog hwaccel: OS X Video Decoder Acceleration (VDA) support. 2011-11-14 16:07:32 +01:00
cmdutils_common_opts.h
cmdutils.c cmdutils: Rename read_file to cmdutils_read_file 2011-10-31 16:29:29 +02:00
cmdutils.h cmdutils: Rename read_file to cmdutils_read_file 2011-10-31 16:29:29 +02:00
common.mak
configure hwaccel: OS X Video Decoder Acceleration (VDA) support. 2011-11-14 16:07:32 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Doxyfile
ffmpeg.c Call avformat_network_init/deinit in the programs 2011-11-06 18:31:39 +02:00
INSTALL
LICENSE
Makefile presets: rename presets directory 2011-10-19 21:20:17 +02:00
README
RELEASE
subdir.mak
version.sh

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.