aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* lavf: simplify format_child_class_next()Luca Barbato2011-11-141-14/+17
| | | | | And fix the error introduced when adding private option to avio. See 32caa7b13cecca59213c73fa94dd683c2b003bfd
* lavf: pass options from AVFormatContext to avio.Anton Khirnov2011-11-132-6/+17
|
* avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwardsMartin Storsjö2011-11-135-8/+14
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: add avio_open2, taking an interrupt callback and optionsMartin Storsjö2011-11-135-3/+83
| | | | | | | | | | | The interrupt callback has to be passed in during opening (setting it after opening isn't enough), since a blocking open couldn't be interrupted otherwise. Options are passed down to procotols and also need to be available during open() in most cases. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: add support for passing options to protocols.Anton Khirnov2011-11-1318-38/+98
| | | | | Not used anywhere yet, support for passing options from avio_open() will follow.
* avio: add and use ffurl_protocol_next().Anton Khirnov2011-11-132-8/+18
|
* avformat: Pass the interrupt callback on to chained muxers/demuxersMartin Storsjö2011-11-132-0/+3
| | | | | | There are a few more cases of chained demuxers, but they only use custom IO which don't do any blocking IO and thus don't need the callback.
* avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_allocMartin Storsjö2011-11-1318-40/+67
| | | | | Change all uses of these function to pass the relevant callback on.
* avformat: Use ff_check_interruptMartin Storsjö2011-11-138-10/+13
|
* avio: Add an internal utility function for checking the new interrupt callbackMartin Storsjö2011-11-132-0/+14
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: Add AVIOInterruptCBMartin Storsjö2011-11-133-0/+29
| | | | | | | | | | | | | This is a better io interrupt callback function, which has an opaque parameter, which is given to the interrupt callback. This allows callers to precisely cancel IO for one single AVFormatContext, without interrupt other ones in the same process. Note, it's not needed in AVIOContext, at the moment. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* VBLE DecoderDerek Buitenhuis2011-11-111-0/+1
| | | | | | | | | Add a decoder for the VBLE Lossless Codec, which still has a cult following. Used to be popular several years ago on doom9. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* vqf/twinvq: pass vqf COMM chunk info in extradataJustin Ruggles2011-11-111-3/+11
| | | | | | This is needed because the twinvq decoder cannot rely on bit_rate to be set. The API documentation says that bit_rate is set by libavcodec, not by the user.
* vqf: do not set bits_per_coded_sample for TwinVQ.Justin Ruggles2011-11-111-1/+0
| | | | | It is a lossy codec with varying quantization, so bits_per_coded_sample is not applicable.
* rtpdec: Simplify finalize_packetJohn Brooks2011-11-111-3/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Handle proxy authenticationMartin Storsjö2011-11-112-24/+53
| | | | | | | | Tested with both Basic and Digest authentication, and tested with both proxy authentication and authentication for the requested resource at the same time. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Print an error message for Authorization Required, tooMartin Storsjö2011-11-111-1/+2
| | | | | | | | | | | The error was hidden before, to avoid showing an error on the first request where no auth has been provided, when the server indicates which authentication method to use. Now the error is printed if an authentication method was used, but failed. Signed-off-by: Martin Storsjö <martin@martin.st>
* AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)Mike Melanson2011-11-111-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tls: Use the URLContext as logging contextMartin Storsjö2011-11-101-5/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Don't add a Range: bytes=0- header for POSTMartin Storsjö2011-11-101-1/+1
| | | | | | That header simply doesn't make sense in that context. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Change the chunksize AVOption into chunked_postMartin Storsjö2011-11-102-5/+6
| | | | | | | | | | | | | | | | | The chunksize internal variable has two different uses - for reading, it's the amount of data left of the current chunk (or -1 if the server doesn't send data in chunked mode), where it's only an internal state variable. For writing, it's used to decide whether to enable chunked encoding (by default), by using the value 0, or disable chunked encoding (value -1). This, while consistent, doesn't make much sense to expose as an AVOption. This splits the usage of the internal variable into two variables, chunksize which is used for reading (as before), and chunked_post which is the user-settable option, with the values 0 and 1, where 1 is default. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add encoding/decoding flags to the AVOptionsAnton Khirnov2011-11-101-2/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* crypto: add decoding flag to options.Anton Khirnov2011-11-101-2/+3
|
* tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCKAnton Khirnov2011-11-101-1/+1
|
* http: use different classes for http and https.Anton Khirnov2011-11-101-7/+11
|
* http: Change an error log message to a warningMartin Storsjö2011-11-101-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Remove the now unused ff_http_set_headers custom functionMartin Storsjö2011-11-102-26/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mms: Set http custom headers via the AVOptionMartin Storsjö2011-11-101-2/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Set http custom headers via the AVOptionMartin Storsjö2011-11-101-2/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Make custom headers settable via an AVOptionMartin Storsjö2011-11-101-7/+14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* crypto: Don't manually free memory allocated via AVOptionsMartin Storsjö2011-11-101-6/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Free URLContext private data allocated via AVOptionsMartin Storsjö2011-11-101-1/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avc: fix memory errors when encoding invalid h264 codecdataJohn Brooks2011-11-091-11/+18
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec: add support for planar signed 8-bit PCM.Justin Ruggles2011-11-091-1/+1
| | | | | | It is found in some 8svx files (e.g. ones created by SoX). Currently the decoder reuses the 8svx functions because we already have handling of a single large planar packet for the compressed 8svx codecs.
* udp: Allow specifying the local IP addressMartin Storsjö2011-11-091-5/+10
| | | | | | | This is useful if sending multicast data on a host with multiple interfaces. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: don't leak corrupted packetsAndrey Utkin2011-11-091-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tls: Use ERR_get_error() in do_tls_pollMartin Storsjö2011-11-081-1/+1
| | | | | | | | | | The return value ret isn't an error code that can be passed to ERR_error_string(). This makes the error messages printed actually contain useful information. Signed-off-by: Martin Storsjö <martin@martin.st>
* mxfdec: Fix comparison of unsigned expression < 0.Alex Converse2011-11-081-1/+1
| | | | | 'size' is populated by functions returning int64_t and int that return negative error codes.
* mpegts: set stream id on just created stream, not an unrelated variableAnton Khirnov2011-11-081-1/+1
| | | | | Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455. Thanks to Uoti Urpala for finding it.
* lavf: expand doxy for some AVFormatContext fields.Anton Khirnov2011-11-081-5/+44
|
* avformat: Avoid a warning about mixed declarations and codeMartin Storsjö2011-11-081-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* BMV demuxer and decoderKostya Shishkov2011-11-084-1/+139
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: Make sure the seekhead struct is freed even on seek failureMartin Storsjö2011-11-071-3/+7
| | | | | | | | The caller expects the seekhead struct to be freed when calling matroska_write_seekhead. Currently, the structure is leaked if the seek fails. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Warn about using network functions without calling ↵Martin Storsjö2011-11-073-0/+9
| | | | | | | | | avformat_network_init This is to make developers aware of the fact that they will start using the new init function at some point. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Revise wordingMartin Storsjö2011-11-071-2/+2
| | | | | | | | It might make sense not to make the function completely mandatory immediately at the next bump, which might be quite soon after the function was introduced. Signed-off-by: Martin Storsjö <martin@martin.st>
* rdt: Set AVFMT_NOFILE on ff_rdt_demuxerMartin Storsjö2011-11-071-0/+1
| | | | | | | | | | This makes rdt work again, which has been broken since 603b8bc2a109978c8499b06d2556f1433306eca7. This commit made opening a demuxer without a file (or in this case, with a filename which can't be opened) fail, unless the demuxer actually declared AVFMT_NOFILE. Signed-off-by: Martin Storsjö <martin@martin.st>
* rdt: Check the return value of avformat_openMartin Storsjö2011-11-071-1/+5
| | | | | | | If it failed, return NULL. This avoids trying to use an half-initialized RDTDemuxContext. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Discard the dynamic handler, if it has an alloc function which failedMartin Storsjö2011-11-071-1/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: don't return from void av_update_cur_dts()Anton Khirnov2011-11-061-1/+1
|
* openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0Martin Storsjö2011-11-061-2/+2
| | | | | | | | | | | | | Since 1.0.0, this function is deprecated. A new function, CRYPTO_THREADID_set_callback is available, but if not set at all, it uses the address of errno as thread id, which should be sufficient for most systems. On windows, it never was necessary to use this function even before 1.0.0, it used the right win32 API function for this by default. Signed-off-by: Martin Storsjö <martin@martin.st>