summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | cook: avoid out of global array read.Michael Niedermayer2012-02-291-12/+29
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-296-22/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: adpcm: Clip step_index values read from the bitstream at the beginning of each frame. oma: don't read beyond end of leaf_table. doxygen: Remove documentation for non-existing parameters; misc small fixes. Indeo3: fix crashes on corrupt bitstreams. msmpeg4: Replace forward declaration by proper #include. segment: implement wrap around avf: reorder AVStream and AVFormatContext aacdec: Remove erroneous reference to global gain from the out of bounds scalefactor error message. Conflicts: libavcodec/indeo3.c libavformat/avformat.h libavutil/avutil.h Merged-by: Michael Niedermayer <[email protected]>
| * adpcm: Clip step_index values read from the bitstream at the beginning of ↵Alex Converse2012-02-281-7/+7
| | | | | | | | | | | | each frame. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
| * doxygen: Remove documentation for non-existing parameters; misc small fixes.Diego Biurrun2012-02-283-8/+0
| |
| * Indeo3: fix crashes on corrupt bitstreams.Ronald S. Bultje2012-02-281-1/+8
| | | | | | | | | | | | | | | | | | Splits at borders of cells are invalid, since it leaves one of the cells with a width/height of zero. Also, propagate errors on buffer allocation failures, so we don't continue decoding (which crashes). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * msmpeg4: Replace forward declaration by proper #include.Diego Biurrun2012-02-281-3/+1
| |
| * aacdec: Remove erroneous reference to global gain from the out of bounds ↵Alex Converse2012-02-271-2/+1
| | | | | | | | scalefactor error message.
* | adpcm_xa: Check filter validity.Michael Niedermayer2012-02-281-0/+8
| | | | | | | | | | | | | | Fixes out of global array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | cook: add const to quant_index_table of categorize()Michael Niedermayer2012-02-281-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-284-902/+903
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avcodec_default_reget_buffer(): fix compilation in DEBUG mode fate: Overhaul WavPack coverage h264: fix mmxext chroma deblock to use correct TC values. flvdec: Remove the now redundant check for known broken metadata creator flvdec: Validate index entries added from metadata while reading rtsp: Handle requests from server to client movenc: use timestamps instead of frame_size for samples-per-packet movenc: use the first cluster duration as the tfhd default duration movenc: factorize calculation of cluster duration into a separate function doc/APIchanges: fill in missing dates and hashes. lavc: reorder AVCodecContext fields. lavc: reorder AVFrame fields. Conflicts: doc/APIchanges libavcodec/avcodec.h libavformat/flvdec.c libavformat/movenc.c tests/fate/lossless-audio.mak Merged-by: Michael Niedermayer <[email protected]>
| * avcodec_default_reget_buffer(): fix compilation in DEBUG modeDiego Biurrun2012-02-271-1/+1
| |
| * h264: fix mmxext chroma deblock to use correct TC values.Ronald S. Bultje2012-02-271-1/+1
| |
| * lavc: reorder AVCodecContext fields.Anton Khirnov2012-02-272-800/+801
| | | | | | | | | | Put related fields together, move the important ones closer to the beginning, try to eliminate holes.
| * lavc: reorder AVFrame fields.Anton Khirnov2012-02-271-90/+91
| | | | | | | | | | Put related fields together, move the important ones closer to the beginning, try to eliminate holes.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-271-16/+49
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavf: don't guess r_frame_rate from either stream or codec timebase. avconv: set discard on input streams automatically. Fix parser not to clobber has_b_frames when extradata is set. lavf: don't set codec timebase in avformat_find_stream_info(). avconv: saner output video timebase. rawdec: set timebase to 1/fps. avconv: refactor vsync code. FATE: remove a bunch of useless -vsync 0 cdxl: bit line plane arrangement support cdxl: remove early check for bpp cdxl: set pix_fmt PAL8 only if palette is available Conflicts: ffmpeg.c libavcodec/h264_parser.c libavformat/rawdec.c tests/fate/demux.mak tests/fate/ea.mak tests/fate/h264.mak tests/fate/prores.mak tests/fate/video.mak tests/ref/fate/bethsoft-vid tests/ref/fate/creatureshock-avs tests/ref/fate/ea-cmv tests/ref/fate/interplay-mve-16bit tests/ref/fate/interplay-mve-8bit tests/ref/fate/nuv tests/ref/fate/prores-alpha tests/ref/fate/qtrle-16bit tests/ref/fate/qtrle-1bit tests/ref/fate/real-rv40 tests/ref/fate/rpza tests/ref/fate/wmv8-drm Merged-by: Michael Niedermayer <[email protected]>
| * Fix parser not to clobber has_b_frames when extradata is set.Reinhard Tartler2012-02-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because in contrast to the decoder, the parser does not setup low_delay. The code in parse_nal_units would always end up setting has_b_frames to "1", except when stream is explicitly marked as low delay. Since the parser itself would create 'extradata', simply reopening the parser would cause this. This happens for instance in estimate_timings_from_pts(), which causes the parser to be reopened on the same stream. This fixes Libav #22 and FFmpeg (trac) #360 CC: [email protected] Based on a patch by Reimar Döffinger <[email protected]> (commit 31ac0ac29b6bba744493f7d1040757a3f51b9ad7) Comments and description adapted by Reinhard Tartler. Signed-off-by: Reinhard Tartler <[email protected]>
| * cdxl: bit line plane arrangement supportPaul B Mahol2012-02-261-11/+48
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Justin Ruggles <[email protected]>
| * cdxl: remove early check for bppPaul B Mahol2012-02-261-4/+0
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Justin Ruggles <[email protected]>
| * cdxl: set pix_fmt PAL8 only if palette is availablePaul B Mahol2012-02-261-1/+1
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Justin Ruggles <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-2618-230/+444
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (34 commits) mlp_parser: fix the channel mask value used for the top surround channel vorbisenc: check all allocations for failure roqaudioenc: return AVERROR codes instead of -1 roqaudioenc: set correct bit rate roqaudioenc: use AVCodecContext.frame_size correctly. roqaudioenc: remove unneeded sample_fmt check ra144enc: use int16_t* for input samples rather than void* ra144enc: set AVCodecContext.coded_frame ra144enc: remove unneeded sample_fmt check nellymoserenc: set AVCodecContext.coded_frame nellymoserenc: improve error checking in encode_init() nellymoserenc: return AVERROR codes instead of -1 libvorbis: improve error checking in oggvorbis_encode_init() mpegaudioenc: return AVERROR codes instead of -1 libfaac: improve error checking and handling in Faac_encode_init() avutil: add AVERROR_UNKNOWN check for coded_frame allocation failure in several audio encoders audio encoders: do not set coded_frame->key_frame. g722enc: check for trellis data allocation error libspeexenc: export encoder delay through AVCodecContext.delay ... Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/fraps.c libavcodec/kgv1dec.c libavcodec/libfaac.c libavcodec/libgsm.c libavcodec/libvorbis.c libavcodec/mlp_parser.c libavcodec/roqaudioenc.c libavcodec/vorbisenc.c libavutil/avutil.h libavutil/error.c libavutil/error.h Merged-by: Michael Niedermayer <[email protected]>
| * mlp_parser: fix the channel mask value used for the top surround channelTim Walker2012-02-251-1/+1
| | | | | | | | Signed-off-by: Justin Ruggles <[email protected]>
| * vorbisenc: check all allocations for failureJustin Ruggles2012-02-251-35/+92
| |
| * roqaudioenc: return AVERROR codes instead of -1Justin Ruggles2012-02-251-2/+2
| |
| * roqaudioenc: set correct bit rateJustin Ruggles2012-02-251-0/+2
| |
| * roqaudioenc: use AVCodecContext.frame_size correctly.Justin Ruggles2012-02-251-26/+65
| | | | | | | | | | | | It is not allowed to change mid-stream like it does currently. Instead we need to buffer the first 8 frames before returning them as a single packet, then only return single frame packets after that.
| * roqaudioenc: remove unneeded sample_fmt checkJustin Ruggles2012-02-251-4/+0
| |
| * ra144enc: use int16_t* for input samples rather than void*Justin Ruggles2012-02-251-1/+2
| |
| * ra144enc: set AVCodecContext.coded_frameJustin Ruggles2012-02-251-6/+19
| |
| * ra144enc: remove unneeded sample_fmt checkJustin Ruggles2012-02-251-4/+0
| |
| * nellymoserenc: set AVCodecContext.coded_frameJustin Ruggles2012-02-251-0/+7
| |
| * nellymoserenc: improve error checking in encode_init()Justin Ruggles2012-02-251-16/+24
| |
| * nellymoserenc: return AVERROR codes instead of -1Justin Ruggles2012-02-251-2/+2
| |
| * libvorbis: improve error checking in oggvorbis_encode_init()Justin Ruggles2012-02-251-37/+76
| |
| * mpegaudioenc: return AVERROR codes instead of -1Justin Ruggles2012-02-251-3/+3
| |
| * libfaac: improve error checking and handling in Faac_encode_init()Justin Ruggles2012-02-251-17/+38
| |
| * check for coded_frame allocation failure in several audio encodersJustin Ruggles2012-02-257-0/+17
| |
| * audio encoders: do not set coded_frame->key_frame.Justin Ruggles2012-02-256-6/+0
| | | | | | | | it is already set in avcodec_alloc_frame()
| * g722enc: check for trellis data allocation errorJustin Ruggles2012-02-251-12/+20
| |
| * libspeexenc: export encoder delay through AVCodecContext.delayJustin Ruggles2012-02-251-4/+3
| |
| * avcodec: document the use of AVCodecContext.delay for audio encodersJustin Ruggles2012-02-251-2/+14
| |
| * kgv1: release reference picture on size change.Ronald S. Bultje2012-02-251-1/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * lavc: merge two if()s with the same condition.Anton Khirnov2012-02-251-2/+1
| |
| * lavc: factorize setting got_packet_ptr in avcodec_encode_video2()Anton Khirnov2012-02-251-2/+2
| |
| * lavc: signal no output when a NULL frame is passed to audio encoder without ↵Anton Khirnov2012-02-251-1/+2
| | | | | | | | delay
| * xwdenc: fix monow encodingPaul B Mahol2012-02-251-2/+4
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
| * cdxl: fix ham6/8 on big endianPaul B Mahol2012-02-251-2/+2
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Justin Ruggles <[email protected]>
| * vorbisdec: add a flush() functionJustin Ruggles2012-02-241-0/+12
| | | | | | | | clear MDCT overlap buffer and reset previous window mode when seeking
| * fraps: release reference buffer on pix_fmt change.Ronald S. Bultje2012-02-241-7/+7
| | | | | | | | | | | | | | | | Prevents crash when trying to copy from a non-existing plane in e.g. a RGB32 reference image to a YUV420P target image Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * avcodec: disallow reget_buffer() if pix_fmt changed.Ronald S. Bultje2012-02-241-0/+2
| |
| * kgv1: use avctx->get/release_buffer().Ronald S. Bultje2012-02-241-25/+39
| | | | | | | | | | | | | | Also fixes crashes on corrupt bitstreams. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]