avio: move extern url_interrupt_cb declaration from avio.h to url.h
avio: AVIO_ prefixes for URL_ open flags.
applehttp: Merge two for loops
The previous commit didn't do this straight away, to keep thediff slightly simpler.
applehttp: Restructure the demuxer to use a custom AVIOContext
This avoids issues where EOF at the end of the segment is giventhe variant demuxer. Now the demuxers only see one single datastream (as when using the applehttp protocol handler).
applehttp: Move finished and target_duration to the variant struct
This is a preparation for a restructuring of the demuxer, tominimize the later diff.
applehttp: Change the variable for stream position in seconds into int64_t
A similar variable for the total stream duration was changed toint64_t in b79c3df08807c96a945, due to overflows in some oddstreams.
Signed-off-by: Luca Barbato <email@example.com>
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>
lavf: Make make_absolute_url a lavf internal function
This is shared by both applehttp demuxer and protocol.
applehttp: Fix a typo in a comment
Use AVERROR_EXIT with url_interrupt_cb.
Functions interrupted by url_interrupt_cb should not be restarted.Therefore using AVERROR was wrong, as it did not allow to distinguishwhen the underlying system call was interrupted and actually needed to be...
avio: deprecate url_feof
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <email@example.com>
avio: rename url_fopen/fclose -> avio_open/close.
avio: rename ByteIOContext to AVIOContext.
applehttp: Handle absolute paths relative to the current server
This fixes roundup issue 2583.
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
This also lists the objects from those two libraries as internal (by addingthe ff_ prefix) so that they can then be hidden via linker scripts.
applehttp: Fix the key check in handle_variant_args
The key string is supposed to contain the equals character,too. Since the checked string was wrong, and the return valuecheck was wrong too, it incorrectly seemed to work right before.
prevent integer overflow in calculating duration
Signed-off-by: Martin Storsjö <firstname.lastname@example.org>
applehttp: Add comments to make_absolute_url
Originally committed as revision 25319 to svn://svn.ffmpeg.org/ffmpeg/trunk
applehttp: Handle a .. path segment in the base url
Originally committed as revision 25318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 25317 to svn://svn.ffmpeg.org/ffmpeg/trunk
applehttp: Allow the base url to be a local file name, too
Originally committed as revision 25316 to svn://svn.ffmpeg.org/ffmpeg/trunk
applehttp: define _XOPEN_SOURCE=600 as required for usleep()
Originally committed as revision 24839 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add Apple HTTP Live Streaming demuxer
Originally committed as revision 24834 to svn://svn.ffmpeg.org/ffmpeg/trunk