summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* rtpdec_vp8: Don't return known-broken packetsMartin Storsjö2012-12-21
| | | | | | | | | | | | | | | | This is built on the assumption that the first partition of each VP8 packet is essential for decoding any later packet - if this partition is broken/missed, the arithmetic coder gets out of sync and decoding the bitstream in further packet ends up with total garbage. If packets of a frame are lost, make sure the first partition is intact (return only this part of the packet, nothing else), otherwise stop returning data until the next keyframe is received. Alternatively, one would simply not return any packets at all until the next keyframe, if packet loss is detected. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Pass the sequence number to depacketizersMartin Storsjö2012-12-21
| | | | | | This allows depacketizers to figure out if packets have been lost. Signed-off-by: Martin Storsjö <martin@martin.st>
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* rtp: Don't read priv_data unless it is allocatedMartin Storsjö2012-12-20
| | | | | | | This makes all users of rtpenc_chain (rtsp muxer, sapenc, mov rtp hinting) work again, broken since 8034130e0. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvenc: Check whether seeking back to the header succeededBjörn Axelsson2012-12-20
| | | | | | | | The FLV muxer tries to update the header in write_trailer, which is impossible if writing to a pipe or network stream. Don't write header data if seeking to the header fails. Signed-off-by: Martin Storsjö <martin@martin.st>
* sapenc: Pass the title on to the chained muxersJernej Virag2012-12-20
| | | | | | | This makes sure it ends up in the SDP, providing a proper session name in the SAP announcements. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: handle h263 and flv1 for codec_tag 'H','2','6','3'Janne Grunau2012-12-19
| | | | | | | | | | The sample in https://bugzilla.libav.org/show_bug.cgi?id=393 and samples/F4V/H263_NM_f.mp4 both have codec_tag H263 for different codecs. H263 is apparently used by Flash Media Server for Sorensen Spark videos. Patch based on commit 5442083b1c541dd166b3adf39131259fc846a62b by Carl Eugen Hoyos. Fixes bug 393.
* misc typo, style and wording fixesDiego Biurrun2012-12-18
|
* doxy: Clarify what avpriv_set_pts_info doesDerek Buitenhuis2012-12-17
| | | | | | The "pts for a given stream" was nonsensical. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* au: Reorder code so that both muxer and demuxer are under #ifdefsDiego Biurrun2012-12-17
| | | | This reduces code size when either piece has been disabled.
* cosmetics: Use consistent names for multiple inclusion guards.Diego Biurrun2012-12-17
|
* rtpdec_vp8: Cosmetics: Fix bad alignment/indentationMartin Storsjö2012-12-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Allow including a SDES/CNAME block in RTCP SR packetsMartin Storsjö2012-12-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_vp8: Include the picture number in VP8 packetsMartin Storsjö2012-12-16
| | | | | | | | | | | This makes it easier for receivers to decide what to do if data is lost. Refactor calculating the max payload size, to avoid hardcoding the header size in too many places, reducing the number of lines that have to be touched if the header is adjusted further. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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
|