summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* lavf: replace av_new_stream->avformat_new_stream part II.Anton Khirnov2011-10-19
| | | | | | | | 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.
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-19
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* lavf: add avformat_new_stream as a replacement for av_new_stream.Anton Khirnov2011-10-19
| | | | It takes a codec parameter, thus enabling codec-specific defaults.
* Ut Video decoderKostya Shishkov2011-10-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtsp: Expose the flag options via private AVOptions for sdp and rtp, tooMartin Storsjö2011-10-17
| | | | | | | | This allows setting the filter_src option for these demuxers, too, which wasn't possible at all before (where the option only was set via URL parameters for RTSP). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Make the rtsp flags avoptions set via a defineMartin Storsjö2011-10-17
| | | | | | This helps sharing these options with the sdp and rtp demuxers. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Set a default video codecMartin Storsjö2011-10-17
| | | | | | | avconv doesn't map video streams to a muxer without specifying a manual stream mapping if the default video codec is CODEC_ID_NONE. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Fix ff_rtp_get_payload_typeMartin Storsjö2011-10-17
| | | | | | | | | | | | It was broken in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602 "Remove all uses of deprecated AVOptions API", where any presence of a payload_type AVOption caused its value to be returned, even if it wasn't set (and thus had the default -1 value). This caused the RTP muxer to be broken. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Remove the separate filter_source variableMartin Storsjö2011-10-17
| | | | | | Read it as a flag from the flags field instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Accept options via private avoptions instead of URL optionsMartin Storsjö2011-10-17
| | | | | | | | | | | | Eventually, the old way of passing options by adding stuff to the URL can be dropped. This avoids having to tamper with the user-specified URL to pass options on the transport mode. This also works better with redirects, since the options don't need to be parsed out from the URL. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Simplify AVOption definitionsMartin Storsjö2011-10-17
| | | | | | | Use defines for shortening common parts, omit the .dbl named initializer (since it's the first element in the union). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Merge the AVOption listsMartin Storsjö2011-10-17
| | | | | | | | This eases adding options that are common for both. The AV_OPT_FLAG_EN/DECODING_PARAM still indicates whether they belong to the muxer or demuxer. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Check for invalid buffer length.Alex Converse2011-10-16
|
* mpegenc/mpegtsenc: add muxrate private options.Anton Khirnov2011-10-17
| | | | Deprecate AVFormatContext.mux_rate.
* lavf: deprecate AVFormatContext.file_sizeAnton Khirnov2011-10-17
| | | | It's too unreliable to be useful. avio_size() should be called instead.
* mov: add support for TV metadata atoms tves, tvsn and stikRaivo Hool2011-10-17
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* matroskadec: fix out of bounds writeRonald S. Bultje2011-10-15
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mov: 10l: Terminate string with 0 not '0'Alex Converse2011-10-14
|
* mov: Prevent illegal writes when chapter titles are very short.Alex Converse2011-10-14
|
* riff: always generate a proper WAVEFORMATEX structure in ff_put_wav_headerJohn Brooks2011-10-14
| | | | | | | | | | | | | | The cbSize field should be included in all cases, even with PCM where its value is ignored. Fixes encoding PCM audio in Matroska for some players which insist on a full WAVEFORMATEX structure for A_MS/ACM audio. Since fate uses wav files for the audio test a larger number of tests has changed checksums or shifted positions due to the 2 byte longer wave header. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* id3v2: reduce the scope of some non-globally-used symbols/structuresDiego Biurrun2011-10-13
|
* id3v2: cosmetics: move some declarations before the places they are usedDiego Biurrun2011-10-13
|
* shn: do not allow seeking in the raw shn demuxer.Justin Ruggles2011-10-13
| | | | | | The demuxer does not read the seektable, a parser is not possible without a full decode, and no shorten decoder can handle random seeking because it needs side info from the seektable.
* avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.Justin Ruggles2011-10-13
| | | | This will prevent seeking by bytes for formats that cannot handle this.
* avformat: update AVInputFormat allowed flagsJustin Ruggles2011-10-13
|
* avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.Justin Ruggles2011-10-13
| | | | | This prevents flushing the packet buffer when the input format does not support seeking.
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* Remove all uses of deprecated AVOptions API.Anton Khirnov2011-10-12
|
* AVOptions: add new API for enumerating children.Anton Khirnov2011-10-12
| | | | | | | | | This will allow the caller to enumerate child contexts in a generic way and since the API is recursive, it also allows for deeper nesting (e.g. AVFormatContext->AVIOContext->URLContext) This will also allow the new setting/reading API to transparently apply to children contexts.
* flvenc: Write the right metadata entry countMartin Storsjö2011-10-12
| | | | | | | | No application rely on this count being correct as far as I know, but if we write a nonzero count value, it might just as well be the right one. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Request that dynamic rate is disabledMartin Storsjö2011-10-12
| | | | | | | | | | | | | | | DSS enables this automatically if streaming VOD over TCP. If enabled, the server feeds packets faster than realtime, screwing up RTCP NTP based timestamps. Also, DSS doesn't indicate that this was indicated, if it was enabled automatically (although if it was requested to be enabled, a header saying that it was enabled is added, but this isn't added if it is enabled automatically), making it even harder to detect and work around properly without explicitly asking for it to be disabled(/enabled, if we were able to support it). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Parse the x-Accept-Dynamic-Rate headerMartin Storsjö2011-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Add ff_ prefix to all nonstatic symbolsMartin Storsjö2011-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Read the packet length for all RTCP packet typesJohn Brooks2011-10-12
| | | | | | | | | | | This allows skipping past unsupported RTCP packet types, as RFC 3550 section 6.1 mandates. Currently this only has any practical effect if a sender puts an unrecognized type before RTCP_BYE in a compounded packet, or (incorrectly) does not put RTCP_SR first. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Fix the minimum packet length for RTCP SR packetsJohn Brooks2011-10-12
| | | | | | We actually read 20 bytes of these packets. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Don't export metadata entries that aren't proper metadataMartin Storsjö2011-10-12
| | | | | | | | | This avoids writing these entries doubly if transcoding from flv to flv, since the muxer blindly writes any and all metadata keys set, in addition to the fixed fields that the muxer always writes. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Split out setting of numeric fields from storing metadataMartin Storsjö2011-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: do not misreport empty sttsLuca Barbato2011-10-11
| | | | | Return -1 instead of ENOMEM if entries is 0. Fixes a av_malloc(0) crash in macosx.
* mov: cosmetics, fix for and if spacingLuca Barbato2011-10-11
|
* id3v2: fix NULL pointer dereferenceAnton Khirnov2011-10-11
| | | | Bug found by Laurent Aimar fenrir at videolan org
* mov: read album_artist atomRaivo Hool2011-10-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: fix disc/track numbers and totalsRaivo Hool2011-10-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* smacker: Separate audio flags from sample rates in smacker demuxer.Justin Ruggles2011-10-11
| | | | Makes the code easier to understand.
* 4xmdemux: prevent use of uninitialized memoryLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* avsdemux: check for out of bound writesLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* avsdemux: check for corrupted dataLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* avidec: fix signed overflow in avi_sync()Mans Rullgard2011-10-10
| | | | | | | | Keeping byte values read from the file as unsigned is consistent with how they are subsequently used and avoids an undefined left shift by 24 when bit 7 is set. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mxfdec: Fix some buffer overreads caused by the misuse of AVPacket related ↵Alex Converse2011-10-10
| | | | functions.
* avidec: simplify size parameter in memset()Janne Grunau2011-10-10
|
* lavf: fix signed overflow in avformat_find_stream_info()Mans Rullgard2011-10-08
| | | | | | | | | | On the first iteration through this code, last_dts is always INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in an invalid manner. Although the result is only used if the input values are valid, performing the subtraction is still not allowed in a strict environment. Signed-off-by: Mans Rullgard <mans@mansr.com>