Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-27lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov
2011-12-29applehttp: Use half the target duration as interval if the playlist didn't ↵Martin Storsjö
update This is mandated in draft-pantos-http-live-streaming-07, section 6.3.4. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-12-29applehttp: Use the last segment duration as reload intervalAndrey Utkin
According to draft-pantos-http-live-streaming-07, 6.3.4, the duration of the last media segment in the playlist should be used as initial minimum reload delay. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-12-14applehttp: Properly clean up if unable to probe a segmentMartin Storsjö
This avoids a segfault if the probe function wasn't able to determine the format. The bug was found by Panagiotis H.M. Issaris. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-12-14applehttp: Avoid reading uninitialized memoryMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-12-12Replace all uses of av_close_input_file() with avformat_close_input().Anton Khirnov
2011-11-18applehttp: Fix seeking in streams not starting at DTS=0Panagiotis H.M. Issaris
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-13avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwardsMartin Storsjö
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-11-13avio: add support for passing options to protocols.Anton Khirnov
Not used anywhere yet, support for passing options from avio_open() will follow.
2011-11-13avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_allocMartin Storsjö
Change all uses of these function to pass the relevant callback on.
2011-11-13avformat: Use ff_check_interruptMartin Storsjö
2011-10-19lavf: replace av_new_stream->avformat_new_stream part II.Anton Khirnov
Manual replacements are done in this commit. In many cases, the id is some constant made up number (e.g. 0 for video and 1 for audio), which is then not used in the demuxer for anything. Those ids are removed.
2011-10-12Remove all uses of deprecated AVOptions API.Anton Khirnov
2011-08-04applehttp: fix variant discard logicLuca Barbato
The v->ctx is always not NULL now, check for streams presence to mark the read_header state. Fixes bug #25, possibly introduced by 603b8bc
2011-07-17lavf: use designated initialisers for all (de)muxers.Anton Khirnov
It's more readable and less prone to breakage.
2011-07-04Do not include mathematics.h in avutil.hMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-16Deprecate av_open_input_* and remove their uses.Anton Khirnov
Deprecate the last remaining member of AVFormatParameters.
2011-06-08Remove all uses of now deprecated metadata functions.Anton Khirnov
2011-05-12configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun
Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
2011-04-24applehttp: Don't export variant_bitrate if it isn't knownMartin Storsjö
If there are no variants, the total bitrate of the single stream isn't known, and exporting variant_bitrate = 0 does look weird, since there really aren't any variants. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-04-23applehttp: Handle AES-128 encrypted streamsMartin Storsjö
This should hopefully fix roundup issue 2586. This commit only implements it in the demuxer, not in the protocol handler. If desired, some of the code could be refactored to be shared by both implementations. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-04-21applehttp: Expose the stream bitrate via metadataMartin Storsjö
This helps callers to intelligently switch between bitrate variants. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-04-19avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini
Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
2011-04-13applehttp: Only check the discard flags if v->ctx actually is initializedMartin Storsjö
This code could be executed if the demuxer reads more than one segment before returning from av_open_input_stream. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-04-08applehttp: don't use deprecated url_ functions.Anton Khirnov
2011-04-07avio: move extern url_interrupt_cb declaration from avio.h to url.hAnton Khirnov
2011-04-07avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov
2011-04-04applehttp: Merge two for loopsMartin Storsjö
The previous commit didn't do this straight away, to keep the diff slightly simpler.
2011-04-04applehttp: Restructure the demuxer to use a custom AVIOContextMartin Storsjö
This avoids issues where EOF at the end of the segment is given the variant demuxer. Now the demuxers only see one single data stream (as when using the applehttp protocol handler).
2011-04-04applehttp: Move finished and target_duration to the variant structMartin Storsjö
This is a preparation for a restructuring of the demuxer, to minimize the later diff.
2011-03-21applehttp: Change the variable for stream position in seconds into int64_tMartin Storsjö
A similar variable for the total stream duration was changed to int64_t in b79c3df08807c96a945, due to overflows in some odd streams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-03-19Replace FFmpeg with Libav in licence headersMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-17lavf: Make make_absolute_url a lavf internal functionMartin Storsjö
This is shared by both applehttp demuxer and protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-03-17applehttp: Fix a typo in a commentMartin Storsjö
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-15Use AVERROR_EXIT with url_interrupt_cb.Nicolas George
Functions interrupted by url_interrupt_cb should not be restarted. Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish when the underlying system call was interrupted and actually needed to be restarted. This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed content). Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-03-08avio: deprecate url_feofAnton Khirnov
AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-23avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-20avio: rename ByteIOContext to AVIOContext.Anton Khirnov
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-04applehttp: Handle absolute paths relative to the current serverMartin Storsjö
This fixes roundup issue 2583. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-01-27Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò
This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
2011-01-24applehttp: Fix the key check in handle_variant_argsMartin Storsjö
The key string is supposed to contain the equals character, too. Since the checked string was wrong, and the return value check was wrong too, it incorrectly seemed to work right before. Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-17prevent integer overflow in calculating durationJohn Wimer
Signed-off-by: Martin Storsjö <martin@martin.st>
2010-10-03applehttp: Add comments to make_absolute_urlMartin Storsjö
Originally committed as revision 25319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03applehttp: Handle a .. path segment in the base urlMartin Storsjö
Originally committed as revision 25318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03ReindentMartin Storsjö
Originally committed as revision 25317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03applehttp: Allow the base url to be a local file name, tooMartin Storsjö
Originally committed as revision 25316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-19applehttp: define _XOPEN_SOURCE=600 as required for usleep()Måns Rullgård
Originally committed as revision 24839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-19Add Apple HTTP Live Streaming demuxerMartin Storsjö
Originally committed as revision 24834 to svn://svn.ffmpeg.org/ffmpeg/trunk