summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Fix a bunch of common typos.Diego Biurrun2012-03-09
|
* build: Skip compiling xvmc.h under the correct condition.Diego Biurrun2012-03-09
|
* aacdec: Fix SCE parity check.Michael Niedermayer2012-03-09
| | | | | | | | | An unpaired SCE preceding a CPE only makes sense for front SCEs preceding the first CPE. Split from FFmpeg commit a8d67efa53dae1d14614e3a7bd4e77e4eab066ab Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacdec: Fix out of array writes (stack).Michael Niedermayer2012-03-09
| | | | | | | | | | | | Set the element to channel vector (e2c_vec) size to be the maximum number of aac channel elements. This makes it slightly larger than it needs to be because CCEs are never mapped to output channel locations. Also add a check that all input tags (legal or not) will fit. Split from FFmpeg commit a8d67efa53dae1d14614e3a7bd4e77e4eab066ab Signed-off-by: Alex Converse <alex.converse@gmail.com>
* ttadec: unbreak playback of matroska filesPaul B Mahol2012-03-08
| | | | | | | | Matroska demuxer needs to recreate tta header, so just display crc error without aborting. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vorbisdec: avoid invalid memory accessAaron Colwell2012-03-08
| | | | | | | | | This fixes some invalid memory access caused later in the function by res_chan[] not being set for all channels. This happens when a channel doesn't appear a submap. This change simply returns a decoder error when this situation is detected. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* huffyuv: add padding to classic (v1) huffman tables.Ronald S. Bultje2012-03-08
| | | | | | | | | | We slightly overread the input buffer, so we require padding at the end of the buffer, as is documented in the get_bits API. Without padding, we'll read uninitialized data or beyond the end of the .rodata, which may crash. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* png: convert to bytestream2 API.Ronald S. Bultje2012-03-08
| | | | | | | Protects against overreads in the input buffer. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2Kostya Shishkov2012-03-08
|
* avs: fix infinite loop on end-of-stream.Ronald S. Bultje2012-03-07
| | | | | | | | | The codec would keep returning the last decoded frame if the stream contains B-frames, since it wouldn't clear that frame from the list of frames to be returned to the user. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* tiffdec: Prevent illegal memory access caused by recycled pointers.Alex Converse2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wma: fix off-by-one in array bounds check.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* sbrdsp.asm: convert all instructions to float/SSE ones.Reimar Döffinger2012-03-07
| | | | | | | | | | | Since the values are floats, using the float operations makes sense, improves performance on some CPUs and makes the code SSE compatible instead of needing SSE2. Based on suggestion by Jason. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dv: cosmetics.Ronald S. Bultje2012-03-07
|
* dv: check buffer size before reading profile.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Revert "AAC SBR: group some writes."Ronald S. Bultje2012-03-07
| | | | | This reverts commit ba36f14e5d34bcca6ecf77ba1c7512d1b51a9740. It broke decoding on x86-32 on some systems.
* cook: extend channel uncoupling tables so the full bit range is covered.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* roqvideo: cosmetics.Ronald S. Bultje2012-03-07
|
* roqvideo: convert to bytestream2 API.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dca: don't use av_clip_uintp2().Ronald S. Bultje2012-03-07
| | | | | The argument is not a literal, thus causing the ARM v6 or later builds to break.
* wmall: fix build with -DDEBUG enabled.Ronald S. Bultje2012-03-07
|
* smc: port to bytestream2 API.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* AAC SBR: group some writes.Christophe Gisquet2012-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dsputil: remove shift parameter from scalarproduct_int16Christophe GISQUET2012-03-07
| | | | | | | | | There is only one caller, which does not need the shifting. Other use cases are situations where different roundings would be needed. The x86 and neon versions are modified accordingly. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* SBR DSP: unroll sum_squareChristophe GISQUET2012-03-07
| | | | | | | | The length is even, so some unrolling can be performed. Timings are for x86: - 32bits: 102c -> 82c - 64bits: 82c -> 69c Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rv34: remove dead code in intra availability checkChristophe GISQUET2012-03-07
| | | | | | | This was an incorrect copy-and-paste to a code not needing the original code. Spotted by Jason in a previous review but forgotten in the commit. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rv34: clean a bit availability checks.Christophe GISQUET2012-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* tgq: convert to bytestream2 API.Ronald S. Bultje2012-03-07
| | | | | | | This protects against input buffer overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* parser: remove forward declaration of MpegEncContextPaul B Mahol2012-03-07
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dca: prevent accessing static arrays with invalid indexes.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* raw: move buffer size check up.Ronald S. Bultje2012-03-07
| | | | | | | This way, it protects against overreads for 4bpp/2bpp content also. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lpcm: fix sample size calculation for 20bit LCPM.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* algmm: convert to bytestream2 API.Ronald S. Bultje2012-03-07
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wma: Refactor common code to fix standalone compilation of WMA lossless decoder.Diego Biurrun2012-03-07
|
* vc1: Move init code shared between decoder and parser to common code file.Diego Biurrun2012-03-07
| | | | This fixes standalone compilation of the VC-1 parser.
* x86: Remove duplicated AVG_3DNOW_OP / AVG_MMX2_OP macros from h264_qpel_mmx.c.Diego Biurrun2012-03-07
|
* SBR DSP: fix SSE code to not use SSE2 instructions.Reimar Döffinger2012-03-06
| | | | | | | | movq from SSE register _to_ memory is an SSE2 instruction. Use the SSE movlps function instead that does the same thing. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* error_resilience: initialize s->block_index[].Ronald S. Bultje2012-03-06
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* svq3: protect against negative quantizers.Ronald S. Bultje2012-03-06
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Don't use ff_cropTbl[] for IDCT.Ronald S. Bultje2012-03-06
| | | | | | | | Results of IDCT can by far outreach the range of ff_cropTbl[], leading to overreads and potentially crashes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* libx264: Allow overriding the sliced threads optionMartin Storsjö2012-03-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-05
|
* amrnb/amrwb: Remove get_bits usage.Alex Converse2012-03-05
| | | | | It is used to parse fixed sized fields out of a single octet. The code is simpler without it.
* dca_parser: parse the sample rate and frame durationsJustin Ruggles2012-03-05
|
* libspeexdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-05
| | | | It is not necessary
* libopencore-amr: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-05
| | | | It is not necessary
* alsdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-05
| | | | It is not necessary
* avcodec: add av_get_audio_frame_duration() function.Justin Ruggles2012-03-05
| | | | | This is a utility function for the user to get the frame duration based on the codec id, frame size in bytes, and various AVCodecContext parameters.
* avcodec: add av_get_exact_bits_per_sample() functionJustin Ruggles2012-03-05
| | | | | | This only returns bits per sample when it is exactly correct. That is, the codec contains only raw samples with no frame headers or padding. This applies to basically all PCM codecs and a small subset of ADPCM codecs.
* Fix format string vulnerability detected by -Wformat-security.Fabian Greffrath2012-03-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>