aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | libopenjpegenc: switch to encode2()Paul B Mahol2012-03-241-13/+15
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libopenjpeg: make .long_name usefullPaul B Mahol2012-03-242-2/+2
| | | | | | | | | | | | | | | | | | | | Fixes following strange output: DEV D libopenjpeg OpenJPEG based JPEG 2000 encoder Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | bintext: build decoders only if they are actually enabledPaul B Mahol2012-03-241-2/+6
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vp56dec: avoid freeing the returned frame before returning it.Michael Niedermayer2012-03-241-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cavsdec: check for changing w/h.Michael Niedermayer2012-03-241-2/+9
| | | | | | | | | | | | | | Our decoder does not support changing w/h. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo3: fix out of picture write.Michael Niedermayer2012-03-241-2/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pthread/mpegvideo: detect and block attempts to init frames after setup.Michael Niedermayer2012-03-244-0/+23
| | | | | | | | | | | | | | This fixes race conditions that ultimately lead to memory corruption. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | error_concealment: Prevent FPEs in case of corrupted input.Michael Niedermayer2012-03-231-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-233-95/+125
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rv34: Handle only complete frames in frame-mt. MPV: set reference frame pointers to NULL when allocation of dummy pictures fails configure: die if x11grab dependencies are unavailable zerocodec: factorize loop avconv: fix the resampling safety factors for output audio buffer allocation avconv: move audio output buffer allocation to a separate function avconv: make the async buffer global and free it in exit_program() Conflicts: ffmpeg.c libavcodec/mpegvideo.c libavcodec/rv34.c libavcodec/zerocodec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rv34: Handle only complete frames in frame-mt.Janne Grunau2012-03-231-79/+112
| | | | | | | | | | | | | | | | Correct handling of errors to prevent hags or crashes is very complex otherwise. The frame initializing is also moved from decode_slice() to decode_frame() for clarity.
| * MPV: set reference frame pointers to NULL when allocation of dummy pictures ↵Janne Grunau2012-03-231-2/+6
| | | | | | | | fails
| * zerocodec: factorize loopMichael Niedermayer2012-03-231-32/+13
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | VC1: restore optimizations broken in 9a1ced32.Reimar Döffinger2012-03-231-6/+11
| | | | | | | | | | | | | | | | They were moved into code under HAVE_YASM and most of them even into completely disabled code with no reason given for that in the commit message. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | interplayvideo: give avctx to av_dlog()Paul B Mahol2012-03-231-7/+7
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | interplayvideo: remove superfluous strings from av_log()Paul B Mahol2012-03-231-7/+7
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vmdvideo: remove superfluous strings from av_log messagesPaul B Mahol2012-03-231-4/+4
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sonic: fix warning about incompatible pointer typesPaul B Mahol2012-03-231-2/+2
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | bitstream: build_table, check table_nb_bits.Michael Niedermayer2012-03-231-0/+2
| | | | | | | | | | | | | | Fixes null ptr deref. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo4: check ref_mbMichael Niedermayer2012-03-231-1/+1
| | | | | | | | | | | | | | Fix NULL deref Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | rawdec: Check w/h.Michael Niedermayer2012-03-231-0/+5
| | | | | | | | | | | | | | Fixes FPE Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mjpegdec: check h/v_count.Michael Niedermayer2012-03-231-0/+4
| | | | | | | | | | | | | | Fixes FPE Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ituh263dec: Implement enough of Annex O (scalability) to fix a FPE.Michael Niedermayer2012-03-231-0/+14
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | error_conceal: fix FPE in guess_dc() with huge sizes.Michael Niedermayer2012-03-231-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo4: check band->scanMichael Niedermayer2012-03-231-0/+5
| | | | | | | | | | | | | | Fixes null ptr exception Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cosmetics: remove superfluous curly bracketsPaul B Mahol2012-03-2368-136/+68
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | huffyuv: remove long time disabled codePaul B Mahol2012-03-231-5/+0
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | huffyuv: do not decode/encode yuv colorspace with odd widthPaul B Mahol2012-03-231-3/+10
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | aacdec: prevent channels from exceeding MAX_CHANNELS.Michael Niedermayer2012-03-231-0/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eatqi: replace break by goto.Michael Niedermayer2012-03-231-1/+2
| | | | | | | | | | | | | | This fixes some heap overread. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | aacdec: reset max_sfb on invalid data.Michael Niedermayer2012-03-221-3/+6
| | | | | | | | | | | | | | Fixes global out of array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vqavideodev: Check image dimensionsMichael Niedermayer2012-03-221-0/+5
| | | | | | | | | | | | | | Fixes out of heap array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-223-27/+58
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: xwma: Validate channels and bits_per_coded_sample. mov: Do not read past the end of the ctts_data table. mov: Add missing terminator to mov_ch_layout_map_1ch. asf: reset side data elements on packet copy. wmavoice: fix stack overread. wmalossless: error out if a subframe is not used by any channel. vqa: check palette chunk size before reading data. wmalossless: reset sample pointer for each subframe. wmalossless: error out on invalid values for order. Conflicts: libavcodec/vqavideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * wmavoice: fix stack overread.Ronald S. Bultje2012-03-221-2/+3
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * wmalossless: error out if a subframe is not used by any channel.Ronald S. Bultje2012-03-221-3/+10
| | | | | | | | | | | | | | Prevents infinite loop because min_channel_len never increments. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * vqa: check palette chunk size before reading data.Ronald S. Bultje2012-03-221-1/+1
| | | | | | | | | | | | | | Prevents overreads beyond buffer boundaries. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * wmalossless: reset sample pointer for each subframe.Ronald S. Bultje2012-03-221-12/+19
| | | | | | | | | | | | | | Prevents overwrites when some subframes only encode some channels. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * wmalossless: error out on invalid values for order.Ronald S. Bultje2012-03-221-9/+25
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | indeo4: check motion vetors.Michael Niedermayer2012-03-221-1/+10
| | | | | | | | | | | | | | Fixes out of heap array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pngenc: make max_packet_size 64bit check check it.Michael Niedermayer2012-03-221-2/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | png: make ff_png_pass_mask local to pngdec.Clément Bœsch2012-03-223-9/+6
| |
* | Fix libgsm.c compilation after typo in 67b8c8.Carl Eugen Hoyos2012-03-221-1/+1
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-222-12/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: FATE: Add ZeroCodec test oggparseogm: fix order of arguments of avpriv_set_pts_info(). pngenc: better upper bound for encoded frame size. aiffdec: set block_duration to 1 for PCM codecs that are supported in AIFF-C aiffdec: factor out handling of integer PCM for AIFF-C and plain AIFF aiffdec: use av_get_audio_frame_duration() to set block_duration for AIFF-C aiffdec: do not set bit rate if block duration is unknown wmall: output packet only if we have decoded some samples Conflicts: libavcodec/pngenc.c tests/fate/lossless-video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pngenc: better upper bound for encoded frame size.Anton Khirnov2012-03-221-13/+17
| | | | | | | | | | | | Fixes encoding very large pictures. Thanks to Костя for providing the formula.
| * wmall: output packet only if we have decoded some samplesKostya Shishkov2012-03-221-2/+2
| | | | | | | | | | Also set CODEC_CAP_DELAY to indicate that decoder may still have some undecoded data left in internal buffer.
* | dcaenc: switch to encode2()Paul B Mahol2012-03-221-7/+14
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libutvideoenc: switch to ff_alloc_packet2().Michael Niedermayer2012-03-221-2/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: limit realloc() on encoding to the libav compatibility API.Michael Niedermayer2012-03-221-2/+6
| | | | | | | | | | | | Neither the old nor new need it. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | VC1: Fix skiploopfilter=all.Reimar Döffinger2012-03-221-0/+2
| | | | | | | | | | | | | | | | It is currently only handled in the parser code for WMV/ASF style header, but not the one used in the bytestream format used when muxed into MPEG-TS as on e.g. BluRay. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Replace SSE2 instruction in scalarproduct_float_sse() by SSE equivalent.ami_stuff2012-03-221-1/+1
| | | | | | | | | | | | Fixes an AAC decoding issue with the sample from ticket #213 on machines with SSE but without SSE2. Based on 89411a by Reimar.
* | lavc: Redesign the internal encoding API.Michael Niedermayer2012-03-222-6/+60
| | | | | | | | | | | | | | The new API allows (optionally and on by default) using a internal buffer to encode, avoiding the need to allocate large buffers or risking failure on too small buffers. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>