summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* 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>
* 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
|