summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libspeex: Add a private option for enabling VADDmitry Samonenko2012-10-03
| | | | | | | Speex detects non-speech periods and encodes them with just enough bits to reproduce the background noise, aka ``comfort noise generation''. Signed-off-by: Martin Storsjö <martin@martin.st>
* ARM: set Tag_ABI_align_preserved in all asm filesMans Rullgard2012-10-02
| | | | | | | | All our ARM asm preserves alignment so setting this attribute in a common location is simpler. This removes numerous warnings when linking with armcc. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiffenc: Check av_malloc() results.Alex Converse2012-10-01
|
* tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.Alex Converse2012-10-01
|
* adpcmdec: set AVCodec.sample_fmtsJustin Ruggles2012-10-01
|
* twinvq: use planar sample formatJustin Ruggles2012-10-01
|
* ralf: use planar sample formatJustin Ruggles2012-10-01
|
* mpc7/8: use planar sample formatJustin Ruggles2012-10-01
|
* iac/imc: use planar sample formatJustin Ruggles2012-10-01
|
* dcadec: use float planar sample formatJustin Ruggles2012-10-01
|
* cook: use planar sample formatJustin Ruggles2012-10-01
|
* atrac3: use float planar sample formatJustin Ruggles2012-10-01
|
* apedec: output in planar sample formatJustin Ruggles2012-10-01
|
* 8svx: use planar sample formatJustin Ruggles2012-10-01
|
* Opus encoder using libopusNathan Caldwell2012-10-01
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* wmadec: Adjust debug printf argument length modifierDiego Biurrun2012-10-01
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avcodec: Drop silly and/or broken printf debug outputDiego Biurrun2012-10-01
|
* avcodec: Drop some silly commented-out av_log() invocationsDiego Biurrun2012-10-01
|
* Remove some silly disabled code.Diego Biurrun2012-10-01
|
* ac3dec: ensure get_buffer() gets a buffer for the correct number of channelsJustin Ruggles2012-10-01
| | | | | | | | | | | If there is an error during frame parsing, but AVCodecContext.channels was changed and AC3DecodeContext.out_channels was set previously, the two may not match. Fixes CVE-2012-2802 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: avoid stuck buffer pointer in decode_nal_unitsJindřich Makovička2012-09-29
| | | | | | | | | | | | | | | | | | When decode_nal_units() previously encountered a NAL_END_SEQUENCE, and there are some junk bytes left in the input buffer, but no start codes, buf_index gets stuck 3 bytes before the end of the buffer. This can trigger an infinite loop in the caller code, eg. in try_decode_trame(), as avcodec_decode_video() then keeps returning zeroes, with 3 bytes of the input packet still available. With this change, the remaining bytes are skipped so the whole packet gets consumed. CC:libav-stable@libav.org Signed-off-by: Jindřich Makovička <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpeg12: fix the semantics of the int* parameter of decode()Anton Khirnov2012-09-29
| | | | It is got_output, not data_size.
* mpeg12: move mpeg_decode_frame() lowerAnton Khirnov2012-09-29
| | | | Avoids a forward declaration of decode_chunks().
* avsdec: Set dimensions instead of relying on the demuxer.Michael Niedermayer2012-09-29
| | | | | | | | | | | The decode function assumes that the video will have those dimensions. Fixes CVE-2012-2801 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wmalosslessdec: Reset put bit buffer when num_saved_bits is reset.Michael Niedermayer2012-09-29
| | | | | | | | | Fixes CVE-2012-2799 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dfa: improve boundary checks in decode_dds1()Anton Khirnov2012-09-29
| | | | | | Fixes CVE-2012-2798 CC:libav-stable@libav.org
* wmalosslessdec: Fix reading too many bits in decode_channel_residues()Anton Khirnov2012-09-29
| | | | | | | | | | Fixes a part of CVE-2012-2795 CC:libav-stable@libav.org Based on a patch by Michael Niedermayer <michaelni@gmx.at> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* wmalosslessdec: fix a get_bits(0) in decode_ac_filterMichael Niedermayer2012-09-29
| | | | | | | | | Fixes a part of CVE-2012-2795 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wmalosslessdec: make MCLMS arrays big enough for what is written into them.Michael Niedermayer2012-09-29
| | | | | | | | | Fixes a part of CVE-2012-2795 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* indeo4/5: check empty tile size in decode_mb_info().Anton Khirnov2012-09-29
| | | | | | | | | | | | | This prevents writing into a too small array if some parameters changed without the tile being reallocated. Based on a patch by Michael Niedermayer <michaelni@gmx.at> Fixes CVE-2012-2800 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* ivi_common: make ff_ivi_process_empty_tile() static.Anton Khirnov2012-09-29
| | | | It's not used outside of ivi_common.c
* indeo5: check tile size in decode_mb_info().Michael Niedermayer2012-09-29
| | | | | | | | | | | | This prevents writing into a too small array if some parameters changed without the tile being reallocated. Fixes CVE-2012-2794 CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* indeo3: fix out of cell write.Anton Khirnov2012-09-29
| | | | | | | | Fixes CVE-2012-2776. CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* wmalosslessdec: increase channel_coeffs/residues sizeAnton Khirnov2012-09-29
| | | | | | Fixes CVE-2012-2792 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* wmalosslessdec: increase WMALL_BLOCK_MAX_BITS to 14.Anton Khirnov2012-09-29
|
* lagarith: check count before writing zeros.Michael Niedermayer2012-09-29
| | | | | | | Fixes CVE-2012-2793 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wmaprodec: check num_vec_coeffs for validityMichael Niedermayer2012-09-29
| | | | | | | Fixes CVE-2012-2789 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* indeo4: update AVCodecContext width/height on size changeMichael Niedermayer2012-09-29
| | | | | | | Fixes CVE-2012-2787 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dfa: check that the caller set width/height properly.Anton Khirnov2012-09-29
| | | | Fixes CVE-2012-2786.
* indeo5dec: Make sure we have had a valid gop header.Michael Niedermayer2012-09-29
| | | | | | | | | This prevents decoding happening on a half initialized context. Fixes CVE-2012-2779 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cavsdec: check for changing w/h.Michael Niedermayer2012-09-29
| | | | | | | | | Our decoder does not support changing w/h. Fixes CVE-2012-2777 and CVE-2012-2784. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: set channel count from channel layout in avcodec_open2().Anton Khirnov2012-09-29
| | | | | Some decoders (e.g. nellymoser) only set channel_layout and do not set channel count.
* dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction()Michael Niedermayer2012-09-28
| | | | | | This should fix the utvideoenc valgrind failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mpegaudiodec: fix short_start calculationLuca Barbato2012-09-28
| | | | | | | The value should be always 3, as it follows from the specification. Fix a stack buffer overflow in exponents_from_scale_factors as reported by asan. Thanks to Dale Curtis for the sample vector.
* libopus: Remap channels using libopus' internal remapping.Nathan Caldwell2012-09-28
| | | | | | | | This way we can directly remap channels from Opus' channel order to libav's internal channel order, instead of mapping channels from Opus' order to Vorbis' order then to libav's order. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Opus decoder using libopusNicolas George2012-09-28
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avcodec: document the use of AVCodecContext.delay for audio decodingNathan Caldwell2012-09-28
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1dec: add flush function for WMV9 and VC-1 decodersKostya Shishkov2012-09-28
| | | | CC: libav-stable@libav.org
* h264_refs: Fix debug tprintf argument typesDiego Biurrun2012-09-27
|