summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* 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>
* mpegps: Use av_get_packet() instead of poorly emulating it.Alex Converse2011-10-07
|
* mpc8: Fix return value on EOFLaurent Aimar2011-10-07
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* segafilm: Check for memory allocation failures in segafilm demuxer.Laurent Aimar2011-10-06
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* segafilm: Fix potential division by 0 on corrupted streams in the demuxerLaurent Aimar2011-10-06
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* Fixed segfault on corrupted sega streams in the demuxer.Laurent Aimar2011-10-06
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc/lavf: use unique private classes.Anton Khirnov2011-10-05
| | | | This is needed by the new AVOptions API.
* Synchronize various 4CCs and codec tags from FFmpeg.Diego Biurrun2011-10-04
|
* ogg/celt: do not set sample_fmt in the demuxerJustin Ruggles2011-10-03
|
* id3v2: remove pointless castsAnton Khirnov2011-10-03
|
* id3v2: read TXXX frames with two calls to decode_str() instead of one.Anton Khirnov2011-10-03
| | | | | | | Read the key in the first, value in the second. This allows to avoid pointless strdups and simplify decode_str() by dropping two of its parameters.
* id3v2: don't discard the whole tag when encountering empty frames.Anton Khirnov2011-10-03
| | | | | While they're technically invalid, it's better to skip them and try to read the rest of the tag.
* lavf: Avoid using av_malloc(0) in av_dump_formatMartin Storsjö2011-09-30
| | | | | | | On OS X, av_malloc(0) returns pointers that cause crashes when freed. Signed-off-by: Martin Storsjö <martin@martin.st>
* latmenc: Set latmBufferFullness to largest value to indicate it is not usedKieran Kunhya2011-09-30
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mpeg probe: check the 2/4-bit synchronization value found after a ↵Alex Converse2011-09-29
| | | | pack_start_code.
* latmenc: Fix private optionsKieran Kunhya2011-09-28
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.Michael Niedermayer2011-09-27
| | | | | | | | | | | | | Whitespace of the patch cleaned up by Aurel Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR) Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 956c901c68eff78288f40e3c8f41ee2fa081d4a8) Further suggestions from Kostya <kostya.shishkov@gmail.com> have been implemented by Reinhard Tartler <siretart@tauware.de> Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* matroskaenc: write attachments.Anton Khirnov2011-09-27
|
* matroskadec: export mimetype of attachments as metadata.Anton Khirnov2011-09-27
|
* rtp: Simplify ff_rtp_get_payload_typeRafaël Carré2011-09-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Add a payload type private optionRafaël Carré2011-09-26
| | | | | | | | Specifying the payload type is useful when the type number has already been negotiated before creating the stream, for example in SIP protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Correct ff_rtp_get_payload_type documentationRafaël Carré2011-09-26
| | | | | | Since 0c378ea1f, it can't fail anymore. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggdec: add support for Xiph's CELT codecNicolas George2011-09-26
| | | | | | | This patch also introduces CODEC_ID_CELT. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* sol: return error if av_get_packet() fails.Justin Ruggles2011-09-25
| | | | This prevents sending a packet with data=NULL size=AVERROR_EOF.
* lavf: do not set codec_tag for rawvideoMans Rullgard2011-09-25
| | | | | | | | | | | | If the demuxer did not set a codec_tag, there is none and inventing one makes no sense. This change stops the rawvideo "decoder" over-writing user-supplied pixfmt with one derived from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip is lossy since several pixfmts map to the same codec_tag. This fixes fate-lavf-pixfmt with avfilter disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* flvdec: Check for overflow before allocating arraysMichael Niedermayer2011-09-25
| | | | | | | On allocation, the array length is multiplied by sizeof(int64_t), this prevents the multiplication from overflowing. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Fix invalid pointer deferences when parsing indexLaurent Aimar2011-09-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.Diego Biurrun2011-09-24
|
* mpegps: Handle buffer exhaustion when reading packets.Alex Converse2011-09-23
|
* rtp: factorize dynamic payload type fallbackRafaël Carré2011-09-23
| | | | | | | Move the identical code in rtp_write_header() and ff_sdp_write_media() inside ff_rtp_get_payload_type() Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* flvdec: Ignore the index if it's from a creator known to be differentMartin Storsjö2011-09-23
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()Diego Biurrun2011-09-23
|
* Add LATM demuxerJanne Grunau2011-09-22
| | | | | This is a raw demuxer for the AAC LATM decoder and thus limited to single stream LOAS.
* 8svx/iff: fix decoding of compressed stereo 8svx files.Justin Ruggles2011-09-22
| | | | | | | | | | Make the iff demuxer send the whole audio chunk to the decoder as a single packet and move stereo interleaving from the iff demuxer to the decoder. Based on a patch by Stefano Sabatini. git.videolan.org/ffmpeg.git commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed
* mp4: Don't read an empty Decoder Config DescriptorAlex Converse2011-09-22
|
* rtmp: Make the input FLV parser handle data cut at any pointMartin Storsjö2011-09-22
| | | | | | | | | | | | | | This makes the RTMP writing code able to handle FLV data fed in arbitrarily small or large chunks, with multiple consecutive packets in one write call, or having the FLV packet header split over numerous write calls. When used in conjunction with the flv muxer, the AVIO buffer size still needs to be large enough to fit the initial metadata packet though, since the size of that packet is written with a seekback. Signed-off-by: Martin Storsjö <martin@martin.st>
* swfdec: Add support for sample_rate_code 0 (5512 Hz)Alex Converse2011-09-21
|
* Remove some forgotten AVCodecContext.palctrl usage.Anton Khirnov2011-09-21
|
* Fix av_dlog invocations with wrong or missing logging context.Diego Biurrun2011-09-21
| | | | This fixes build failures with -DDEBUG in CPPFLAGS.
* oma: support for encrypted filesDavid Goldwich2011-09-21
| | | | | Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* id3v2: add support for non-text and GEOB type tag framesDavid Goldwich2011-09-21
| | | | | | | | | | | | | | | | | | | | | | This extends the ID3v2 parser to allow for reading of non-text (i.e. other than T***) meta tag frames providing a ff_id3v2_read_all() function. An additional data structure 'ID3v2ExtraMeta' is introduced for these tags since AVDictionary is string oriented and unsuitable for binary data. A parser for tag frames of type GEOB is implemented, which is needed to extract keyring information from encrypted OMA files. GEOB data is parsed into 'ID3v2ExtraMetaGEOB' data structures. The routine to decode characters from different encodings to UTF-8, formerly part of the read_ttag() function, is moved to its own function. Because some tag frames contain subparts of unknown length, the function is now also able to read until a null character is found. In addition, the function now takes care of allocating a buffer long enough to hold the decoded characters. Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtmp: Don't blindly skip the 4 trailer bytes from the FLV packetsMartin Storsjö2011-09-20
| | | | | | | | | | | | | | | | If not enough bytes are available, keep track of them and skip them on next call. In practice, if these trailer bytes are written in a separate call, there is no other data written in this call, making it fall into the "FLV packet too small" case currently - working, but not as intended. This patch makes the code more robust, handling all cases except for having the FLV packet header split over multiple write calls. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Handle FLV packets written in more than one write callChiranjeevi Melam2011-09-20
| | | | | | | | | | If the FLV packet is larger than the AVIO buffer, a partial FLV packet will be flushed to the RTMP protocol. This commit handles the most common cases of FLV packets being written in more than one call. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: fix NULL reference in mov_write_tkhd_tagAnton Khirnov2011-09-19
| | | | | st may be NULL when there are more mov streams than AVStreams, e.g. when chapters are present.
* rmdec: Reject invalid deinterleaving parametersLaurent Aimar2011-09-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rmdec: use the deinterleaving mode and not the codec when creating audio ↵Laurent Aimar2011-09-19
| | | | | | | | packets. It prevents crashes due to non initialized fields. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: Fix context pointer in av_open_input_stream when avformat_open_input failsDavid Goldwich2011-09-19
| | | | | Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggdec: fix out of bound write in the ogg demuxerLaurent Aimar2011-09-17
| | | | | | | Between ogg_save() and ogg_restore() calls, the number of streams could have been reduced. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* movenc: create an alternate group for each media typeAnton Khirnov2011-09-17
| | | | Partially fixes bug 44.
* rawdec: refactor private option for raw video demuxersAnton Khirnov2011-09-17
| | | | | | | | pixel_format/video_size only apply to 'rawvideo' (==uncompressed) demuxer and make no sense for the other raw (== containerless) demuxers. Keep only the framerate option for those. Also use unique classes for all raw video demuxers