summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* md5proto: Fix order of operations.Alex Converse2011-11-27
|
* musepack: fix signed shift overflow in mpc_read_packet()Mans Rullgard2011-11-27
| | | | | | | Using an unsigned variable avoids problems with overflows. There is further no need for a 64-bit intermediate here. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mov: Make format string match variable type.Alex Converse2011-11-26
|
* Generalize RIFF INFO tag support; support reading INFO tag in wavVictor Vasiliev2011-11-26
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()Justin Ruggles2011-11-26
| | | | | It is used by the ADX decoder, and therefore needs to be exported in order to work with shared libs.
* avformat: add CRI ADX format demuxerJustin Ruggles2011-11-26
|
* adx: add an ADX parser.Justin Ruggles2011-11-26
| | | | | | This simplifies the decoder so it doesn't have to process an in-packet header or handle arbitrary-sized packets. It also fixes decoding of files with large headers.
* sol: use AV_RL32 instead of raw pointer castMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* nullenc: drop AVFMT_RAWPICTURE from the flagsLuca Barbato2011-11-25
| | | | | This makes the two pass encoding with x264 working with -f null - as first pass.
* cdg: skip packets that don't contain a cdg command.Justin Ruggles2011-11-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* crcenc: add flagsAnton Khirnov2011-11-23
| | | | | | | | | | AVFMT_NOTIMESTAMPS for crc, as it ignores the timestamps. AVFMT_VARIABLE_FPS for framecrc, as it prints dts. Many FATE changes, because avconv is no longer duplicating frames in those tests. Also added -vsync 0 for some tests to prevent avconv from dropping frames until it can be fixed more properly.
* md5enc: add flagsAnton Khirnov2011-11-23
| | | | | | | | | AVFMT_NOTIMESTAMPS for md5, as it ignores the timestamps. AVFMT_VARIABLE_FPS for framemd5, as it prints dts. -vsync 0 for the vp8 test is needed because with vsync 2 the timestamp guessing code gets confused by an altref frame that is never displayed and drops a frame later.
* mov: Remove some redundant and obsolete comments.Alex Converse2011-11-22
|
* doxy: structure libavformat groupsLuca Barbato2011-11-22
|
* pthread: do not touch has_b_framesJanne Grunau2011-11-22
| | | | | | | | | | | | | | | | | | Adding the thread count in frame level multithreading to has_b_frames as an additional delay causes more problems than it solves. For example inconsistent behaviour during timestamp calculation in libavformat. Thread count and frame level multithreading are both set by the user. If the additional delay caused by frame level multithreading needs to be considered in the calling code it has all information to take it into account. Should it become necessary to calculate a maximum delay inside libavcodec it should be exported as its own field and not reusing an existing field. Based on a patch by Michael Niedermayer. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* httpproxy: Specify the object files needed in the MakefileMartin Storsjö2011-11-20
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: do not hardcode invoke numbersJosh Allmann2011-11-18
| | | | | | | | Note: FCPublish/FCUnpublish are adobe server specific and not described in the rtmp specification. Some servers might not cope with them at all. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: Mark the old interrupt callback mechanism as deprecatedMartin Storsjö2011-11-18
| | | | Prepare for removing it at an upcoming major bump.
* applehttp: Fix seeking in streams not starting at DTS=0Panagiotis H.M. Issaris2011-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* http: Don't use the normal http proxy mechanism for httpsMartin Storsjö2011-11-18
| | | | | | | | | | The tls protocol handles connections via proxies internally. With TLS/SSL, the peer verification requires that the client speaks directly with the server, since the proxy doesn't have the remote server's private key. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Handle connection via a http proxyMartin Storsjö2011-11-18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Reorder two code blocksMartin Storsjö2011-11-18
| | | | | | This is in preparation for a later commit. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add a new protocol for opening connections via http proxiesMartin Storsjö2011-11-18
| | | | | | | | | | This opens a plain TCP connection through the proxy via the CONNECT HTTP method. Normally, this is allowed for connections on port 443, but can in general be used to allow connections to any port (depending on proxy configuration), and could thus be used to tunnel any TCP connection via a HTTP proxy. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Split out the non-chunked buffer reading part from http_readMartin Storsjö2011-11-18
| | | | | | | This is in preparation for a later commit, where this function is reused. Signed-off-by: Martin Storsjö <martin@martin.st>
* segafilm: add support for raw videosMatthew Hoops2011-11-18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: only use RTCP for PTS when synchronizing multiple streamsJohn Brooks2011-11-18
| | | | | | | | | RTCP timestamps are only necessary to synchronize time between multiple streams. For a single stream, the RTP packet timestamp provides more reliable timing. As a result, single-stream RTP sessions should now have accurate and monotonic PTS. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: unwrap RTP timestamps for PTS calculationJohn Brooks2011-11-18
| | | | | | The timestamp field in RTPDemuxContext was unused before this. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Use TLSv1_client_method for OpenSSLMartin Storsjö2011-11-17
| | | | | | | | | | | | | TLSv1 is compatible with SSLv3, so this doesn't change much in terms of compatibility. By explicitly using TLSv1, OpenSSL sends the server name indication (SNI) header, which we already set using SSL_set_tlsext_host_name (earlier, this didn't have any effect). SNI allows servers to serve SSL content for different host names with separate certificates on one single port (vhosts). Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Accept the ISO8601 separate format as input, tooMartin Storsjö2011-11-16
| | | | | | | | This makes the function accept the format of creation_time as output by demuxers (e.g. the mov demuxer), making the creation timestamp stay intact if transcoding. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Interpret times in ff_iso8601_to_unix_time as UTCMartin Storsjö2011-11-16
| | | | | | | | | | This function is used in muxers for parsing the 'creation_time' metadata key, for converting it to a time value. This makes it match the behaviour of the exported 'creation_time' metadata from demuxers, where it is in UTC, too. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: fix multiplication overflow in avformat_find_stream_info()Mans Rullgard2011-11-15
| | | | | | | Converting to double before the multiplication rather than after avoids an integer overflow in some cases. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: simplify format_child_class_next()Luca Barbato2011-11-14
| | | | | And fix the error introduced when adding private option to avio. See 32caa7b13cecca59213c73fa94dd683c2b003bfd
* lavf: pass options from AVFormatContext to avio.Anton Khirnov2011-11-13
|
* avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwardsMartin Storsjö2011-11-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: add avio_open2, taking an interrupt callback and optionsMartin Storsjö2011-11-13
| | | | | | | | | | | 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-13
| | | | | Not used anywhere yet, support for passing options from avio_open() will follow.
* avio: add and use ffurl_protocol_next().Anton Khirnov2011-11-13
|
* avformat: Pass the interrupt callback on to chained muxers/demuxersMartin Storsjö2011-11-13
| | | | | | 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-13
| | | | | Change all uses of these function to pass the relevant callback on.
* avformat: Use ff_check_interruptMartin Storsjö2011-11-13
|
* avio: Add an internal utility function for checking the new interrupt callbackMartin Storsjö2011-11-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: Add AVIOInterruptCBMartin Storsjö2011-11-13
| | | | | | | | | | | | | 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-11
| | | | | | | | | 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-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-11
| | | | | It is a lossy codec with varying quantization, so bits_per_coded_sample is not applicable.
* rtpdec: Simplify finalize_packetJohn Brooks2011-11-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Handle proxy authenticationMartin Storsjö2011-11-11
| | | | | | | | 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-11
| | | | | | | | | | | 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-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tls: Use the URLContext as logging contextMartin Storsjö2011-11-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>