summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* avformat: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-019-29/+61
|
* avformat: Remove non-compiling and/or silly commented-out printf/av_log ↵Diego Biurrun2012-10-0111-44/+0
| | | | statements
* avidec: use actually read size instead of requested sizeAnton Khirnov2012-09-291-1/+1
| | | | Fixes CVE-2012-2788
* avidec: return 0, not packet size from read_packet().Anton Khirnov2012-09-291-1/+1
|
* http: Increase buffer sizes to cope with longer URIsDuncan Salerno2012-09-281-5/+8
| | | | | | | | | | | | | Use the MAX_URL_SIZE define where applicable. Increase buffer sizes for all buffers that need to fit a long pathname - buffers that need to fit only the hostname (and other short strings, but not the pathname - such as "headers" in http_connect) are kept at 1024 bytes for now. Also increase the max line length in http_read_header, since it might need to contain a full url for Location: redirects. Signed-off-by: Martin Storsjö <martin@martin.st>
* nutenc: const correctness for ff_put_v_trace/put_s_trace function argumentsDiego Biurrun2012-09-271-2/+6
|
* nutdec: Remove unused and broken debug function stubDiego Biurrun2012-09-271-10/+0
|
* Add Opus support to the Ogg muxer.Nathan Caldwell2012-09-272-6/+52
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avformat: Identify anonymous AVIO typedef structs.Dale Curtis2012-09-271-2/+2
| | | | | | | | | | Anonymous typedef structs prevent forward declaration, this change gives the AVIOContext and AVIOInterruptCB structures a name. These structures are now in line with other common structures such as AVFormatContext and AVCodecContext. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* nutdec: const correctness for get_v_trace/get_s_trace function argumentsDiego Biurrun2012-09-261-4/+4
|
* rtpdec: Remove a useless ff_ prefix from a static symbolMartin Storsjö2012-09-261-2/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Support depacketizing speexDmitry Samonenko2012-09-262-1/+8
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Add support for packetizing speexDmitry Samonenko2012-09-263-1/+6
| | | | | | | This packetization scheme simply places the full packets into the RTP packet without any extra header bytes. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggparsetheora: make it more robustLuca Barbato2012-09-241-3/+12
|
* ogg: prevent NULL pointer deference in theora gptoptsMichael Niedermayer2012-09-241-2/+7
| | | | | | | | Additional safety in case a special ogg stream is crafted with the proper number of Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ogg: calculate the start position once all the headers are parsedLuca Barbato2012-09-243-4/+16
| | | | | The fisbone packets can be muxed in any order as long the last one comes before the first data packet.
* ogg: check that the expected number of headers had been parsedLuca Barbato2012-09-2410-5/+34
| | | | Not having the header for a codec is a tell-tale of a broken file.
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-241-0/+1
|
* lavf: use a malloced AVFrame in try_decode_frame().Anton Khirnov2012-09-241-8/+17
| | | | This allows using avcodec_free_frame() to free it properly.
* rtp: Packetization of JPEG (RFC 2435)Samuel Pitoiset2012-09-236-2/+151
|
* smoothstreamingenc: Copy the SAR on the AVStreams as wellMartin Storsjö2012-09-231-0/+1
| | | | | | This is required in chained muxers, if the SAR happens to be set. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: fix a sanity check.Anton Khirnov2012-09-211-1/+1
|
* matroskadec: only return corrupt packets that actually contain dataAnton Khirnov2012-09-211-1/+1
| | | | Fixes bug 372.
* lavf: zero data/size of the packet passed to read_packet().Anton Khirnov2012-09-211-0/+2
|
* lavf probe: prevent codec probe with no data at all seenJanne Grunau2012-09-201-0/+5
| | | | | | This occurs with fuzzed mpeg-ts files. set_codec_from_probe_data() is called with a zeroed AVProbeData since no packet made through for specific stream.
* mp3dec: read Xing frame TOC indexAnton Khirnov2012-09-191-1/+57
|
* mp3dec: use named constants for Xing header flagsAnton Khirnov2012-09-191-2/+5
|
* mov: support random access point groupingYusuke Nakamura2012-09-192-0/+60
| | | | | | | | | Frames described by this grouping are the starter of a closed or an open GOP. This is useful for open GOP of H.264 stream which is not described by sync sample atom. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* matroskadec: properly support BlockDurationLuca Barbato2012-09-191-5/+17
|
* matroskadec: split frame parsingLuca Barbato2012-09-191-130/+158
|
* matroskadec: split laces parsingLuca Barbato2012-09-191-89/+108
|
* matroska: implement support for ProResLuca Barbato2012-09-193-4/+24
| | | | | | | | Support Matroska native formatting. On demuxing prepend a Frame container atom (32bit big endian encoded frame size and 'icpf' string). On muxing remove it.
* matroska: implement support for ALACMoritz Bunkus2012-09-193-0/+24
| | | | | | | | | | | | | | | | | | Support Matroska native formatting. On demuxing reconstruct the 36-bytes QuickTime atom that the ALAC decoder expects by prepending the "atom size", "tag" and "tag version" fields missing from the Matroska's CodecPrivate element. On muxing remove the initial 12 bytes Sample files are available: http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska.mka and the CoreAudio file it was created from with today's mkvmerge: http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska-source.caf Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* matroskadec: validate lace_size when parsedLuca Barbato2012-09-191-7/+16
| | | | | Stricter validation, explicitly exit on misparsing and some error forwarding from the ebml parsing functions used.
* matroskadec: return meaningful errors in matroska_decode_bufferLuca Barbato2012-09-191-6/+19
|
* matroskadec: fix incorrect unsigned->signed conversionDale Curtis2012-09-191-1/+1
|
* matroskadec: refactor matroska_decode_bufferLuca Barbato2012-09-191-21/+28
| | | | | Make MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP behave like the other encodings and spare few lines of boilerplate code.
* matroskadec: check realloc in lzo encodingLuca Barbato2012-09-191-1/+5
| | | | Make all the compression encodings behave the same way.
* matroska: honor error_recognition on unknown doctypesLuca Barbato2012-09-191-0/+4
|
* smoothstreaming: Export the mp4 codec tagsMartin Storsjö2012-09-182-1/+3
| | | | | | | | | This fixes stream copy from a format that already has incompatible codec tags set. The chained ismv muxer exports this same codec tag list, so set it on this one as well, to allow the caller (and lavf common code) to set them correctly. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: check for EOF in long lasting loopsLuca Barbato2012-09-181-16/+56
| | | | | | | A quite widespread pattern in the demuxer is read a 32bit unsigned integer and then loop till this value is reached. Checking for EOF prevents pathological situations.
* flvenc: silence bogus warningBenjamin Larsson2012-09-181-1/+1
| | | | | | | | | The compiler fails to figure out that enc->codec_type can only have 3 different values. Thus when an if/else is encountered it triggers on the possibility of the else case has not initialized the flags variable. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* id3v2: strdup the genre name explicitly.Clément Bœsch2012-09-171-7/+4
| | | | | | | | | It would have been done anyway in the av_dict_set() call. This simplifies the code and avoid a warning because of assigning a const string from ff_id3v1_genre_str to a non-const variable. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf/id3v2: do not export empty fields.Clément Bœsch2012-09-171-0/+2
| | | | | | This also avoids a memleak. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: stsd entries must be at least 16 byteMichael Niedermayer2012-09-161-1/+4
| | | | | | | | | | Fix near infinite loop in stsd parsing. Bug found by: Diana Elena Muscalu The size is unsigned according the specification. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: detect EOF in mov_read_dref()Michael Niedermayer2012-09-161-0/+2
| | | | | | | | Avoid a near infinite loop. Issue discovered by cosminamironesei. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* file: return proper error on seek failuresLuca Barbato2012-09-161-2/+8
|
* avformat: fix typo in avformat_close_inputLuca Barbato2012-09-151-1/+1
| | | | The condition should not be &&.
* mp3enc: write Xing TOCAnton Khirnov2012-09-151-20/+120
| | | | | | | | | | | | Based on the code by: Peter Belkner <pbelkner@snafu.de>, Michael Niedermayer <michaelni@gmx.at>, Clément Bœsch <clement.boesch@smartjog.com>, Reimar Döffinger <Reimar.Doeffinger@gmx.de>, and Tobias Rapp <t.rapp@noa-audio.com> Alex Converse <alex.converse@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mp3enc: support MPEG-2 and MPEG-2.5 in Xing header.Clément Bœsch2012-09-151-7/+17
|
OpenPOWER on IntegriCloud