summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* rtpproto: Remove unused definesMartin Storsjö2012-12-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_mpeg4: Cosmetic cleanupMartin Storsjö2012-12-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Cosmetic cleanup of the headerMartin Storsjö2012-12-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Get rid of a useless _s suffix on a struct nameMartin Storsjö2012-12-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec/enc: Remove outdated/useless/misleading commentsMartin Storsjö2012-12-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Improve some commentsMartin Storsjö2012-12-12
| | | | | | | The previous comment about the buffer was wildly inaccurate and misleading. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Remove unused context variablesMartin Storsjö2012-12-12
| | | | | | | These stem from back when both the rtp muxer and rtp depacketizing shared the same struct. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Limit writing to the buffer sizeMartin Storsjö2012-12-12
| | | | | | This fixes potential buffer overwrites. Signed-off-by: Martin Storsjö <martin@martin.st>
* swfdec: cosmetics: fix indentationJustin Ruggles2012-12-11
|
* swfdec: do better validation of tag lengthJustin Ruggles2012-12-11
| | | | | | | Avoids trying to read a packet with 0 or negative size. Avoids a potential infinite loop due to seeking backwards. Partially based on a patch by Michael Niedermayer.
* rtpdec: Remove an outdated todo commentMartin Storsjö2012-12-10
| | | | | | | | | | | | This comment was added in e309128f, in 2002, and has been brought along since then more or less unmodified. The first point of the todo was implemented in dbf30963 in 2006, the second one is not relevant to rtpdec.c (brought along from rtp.c in 8eb793c4 in 2008) but would be more relevant to the rtp muxer, although it isn't a good idea anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Rename a static variable to normal naming conventionsMartin Storsjö2012-12-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: K&R formatting and spelling cosmeticsMartin Storsjö2012-12-09
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avio: K&R cosmetic formattingLuca Barbato2012-12-09
|
* lavf: fix arithmetic overflows in avformat_seek_file()Mans Rullgard2012-12-08
| | | | | | | | The values compared here can be more than INT64_MAX apart. Since the difference is always positive, converting to uint64_t before subtracting gives the correct result without overflows. Signed-off-by: Mans Rullgard <mans@mansr.com>
* hls: use a meaningful long nameLuca Barbato2012-12-08
|
* hls: add start_number optionLuca Barbato2012-12-08
|
* tak: demuxer, parser, and decoderPaul B Mahol2012-12-07
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* bitstream: add get_bits64() to support reading more than 32 bits at onceMichael Niedermayer2012-12-07
| | | | | | | Also remove a duplicate function in the MPEG-TS demuxer. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mov: validate number of DataReferenceBox entries against box sizeJanne Grunau2012-12-07
| | | | | Avoids a 2G memory allocation and parsing of random data in mov_read_dref(). The fuzzed sample sample.mp4_s224424 triggers this.
* mov: compute avg_frame_rate only if duration is knownJanne Grunau2012-12-07
| | | | Fixes an assert in fuzzed sample sample.mp4_s265930.
* raw demuxer: initialize end of partial packetsJanne Grunau2012-12-05
|
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
|
* build: cosmetics: Move CONFIG_RTPDEC entry to a more suitable placeDiego Biurrun2012-12-03
|
* build: Make the ISMV muxer select the MOV muxerDiego Biurrun2012-12-03
| | | | They share the same code, so building one w/o the other makes no sense.
* img2: K&R formatting cosmeticsDiego Biurrun2012-11-29
| | | | Also introduce local img_ namespace to simplify debugging.
* rtpenc_chain: Remove unused variableDiego Biurrun2012-11-28
|
* nuv: check for malloc failure when allocating extradataJustin Ruggles2012-11-28
| | | | | | | Also make sure extradata is freed in the case where multiple NUV_EXTRADATA frame types are found. This may not happen in practice, but it could happen in a malformed stream, which would lead to a memleak if not handled.
* nuv: use the stream indices generated by avformat_new_stream()Justin Ruggles2012-11-28
|
* nuv: cosmetics: pretty-printingJustin Ruggles2012-11-28
|
* lavf: move nuv fourcc audio tags from riff to nuvJustin Ruggles2012-11-28
|
* lavf: add a common function for selecting a pcm codec from parametersJustin Ruggles2012-11-28
|
* lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.hJustin Ruggles2012-11-28
|
* lavf: move "MP3 " fourcc from riff to nutJustin Ruggles2012-11-28
| | | | Original commit, 7b24f9b, says it was added because it is used in libnut.
* wavenc: write fact chunk sample count at the correct file positionMichael Niedermayer2012-11-26
| | | | | | | Fixes curruption of metadata in the INFO chunk. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* riff: do not add empty metadata tags in INFO chunkJustin Ruggles2012-11-26
|
* riff: only warn on a bad INFO chunk code size instead of failingJustin Ruggles2012-11-26
| | | | fixes Bug 392
* lavf: avoid integer overflow in ff_compute_frame_duration()Janne Grunau2012-11-26
| | | | | | | | Scaling the denominator instead of the numerator if it is too large loses precision. Fixes an assert caused by a negative frame duration in the fuzzed sample nasa-8s2.ts_s202310. CC: libav-stable@libav.org
* yop: fix typoPaul B Mahol2012-11-25
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* riff: Make ff_riff_tags static and move under appropriate #ifdefDiego Biurrun2012-11-25
| | | | The table is not used outside the file.
* id3v2: fix reading unsynchronized frames.Anton Khirnov2012-11-22
| | | | | | | | | Current code would incorrectly process e.g. 'ff 00 ff 00 ff' to 'ff ff ff', while it should be 'ff ff 00 ff'. Fixes Bug 395. CC: libav-stable@libav.org
* apetag: fix error handling in ff_ape_parse_tag()Xi Wang2012-11-21
| | | | | | | | | | | | | | | | | | | | The following error handling is broken due to signedness. int file_size; uint32_t tag_bytes; int64_t tag_start; ... tag_start = file_size - tag_bytes - APE_TAG_FOOTER_BYTES; if (tag_start < 0) { ... } Note that tag_bytes is unsigned, which makes the right-hand side of `tag_start = ...' unsigned, too. The 32-bit unsigned value is then zero-extended to 64 bits. Therefore, tag_start must be non-negative, and the check (tag_start < 0) is always false, which breaks the error handling. This patch fixes the check. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mxfdec: fix typo in mxf_read_seek()Janne Grunau2012-11-15
| | | | | | | Check the number of index tables before using byte offset based seeking instead of the index_tables pointer. Found by Måns Rullgård <mans@mansr.com>.
* rtp: set the payload type as stream idLuca Barbato2012-11-14
| | | | | | | Support multiple video/audio streams with different format in the same session. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avformat: clarify stream id for muxingLuca Barbato2012-11-14
|
* segment: fix NULL pointer dereference in seg_write_header()Xi Wang2012-11-14
| | | | | | | | Since the pointer `oc' is NULL, oc->oformat->name will cause a null pointer dereference. This patch changes it to seg->oformat->name. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsenc: stand alone hls segmenterLuca Barbato2012-11-13
| | | | Simplifies usage but has higher latency.
* yop: set channel layoutJustin Ruggles2012-11-12
|
* wtv: set channel layout for mpeg audioJustin Ruggles2012-11-12
|
* westwood_aud: set channel layoutJustin Ruggles2012-11-12
|