summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/hevc_ps: Check that log2_ctb_size is not smaller than the bounds of ↵Michael Niedermayer2015-02-25
| | | | | | | | | | | all profiles Fixes: unaligned memory access Fixes: signal_sigsegv_3344165_576_cov_3406448105_DBLK_A_MAIN10_VIXS_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Suggested-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/snow: Initialize spatial_decomposition_count to a valid valueMichael Niedermayer2015-02-25
| | | | | | | | Fixes undefined behavior Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/hevcdsp: ARM NEON optimized qpel functionsSeppo Tomperi2015-02-25
| | | | | | uses comma as macro parameter separator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/hevc_ps: Sanity checks for some log2_* valuesMichael Niedermayer2015-02-25
| | | | | | log2 values which imply numeric overflow are not supported Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/zmbv: Check len before reading in decode_frame()Michael Niedermayer2015-02-25
| | | | | | | | Fixes out of array read Fixes: asan_heap-oob_4d4eb0_3994_cov_3169972261_zmbv_15bit.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/h264: Clear last_pic_for_ec on seeks and reinitsMichael Niedermayer2015-02-25
| | | | | | | | Fixes out of array read Fixes: asan_heap-oob_2ff30d2_3479_cov_3803648058_src13_hrc7_525_420_2.264 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/arm/hevcdsp_idct_neon: drop ".code 32"Michael Niedermayer2015-02-25
| | | | | | | gas-preprocessor and armasm fail otherwise Tested-by: Timotius Margo Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/h264: Only reinit quant tables if a new PPS is allowedMichael Niedermayer2015-02-24
| | | | | | | | Fixes null pointer dereference Fixes: signal_sigsegv_3042097_3007_cov_1741463594_non_monotone_timestamps1.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mss4: check return value of init_get_bits8()Paul B Mahol2015-02-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavc/pthread_slice: release entriesChristophe Gisquet2015-02-24
| | | | | | | | | When calling ff_alloc_entries, a number of entries are created. They are never freed, as running fate with slice threading and several frames on e.g. fate-hevc-conformance-ENTP_A_Qualcomm_1 would show. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/nutdec: fix isom and mpa build depsClément Bœsch2015-02-24
| | | | | | | Fixes the following link error: nutdec.c:(.text+0x2d47): undefined reference to `ff_codec_movvideo_tags' isom.c:(.text+0x332): undefined reference to `avpriv_mpeg4audio_get_config' isom.c:(.text+0x39e): undefined reference to `avpriv_mpa_freq_tab'
* avcodec/snow: Free all planes and bands independent of the last countMichael Niedermayer2015-02-24
| | | | | | | | Fixes memleak Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/snowdec: Fix ref value checkMichael Niedermayer2015-02-24
| | | | | | | | Fixes integer overflow and out of array read. Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Revert "takdec: pad filter coeff buffer for DSP functions"James Almer2015-02-23
| | | | | | | This reverts commit e0c7ba40cf0bb521430f4a808ed1f1a408093f9c. Valgrind complains about invalid reads, which generate segfaults in some systems.
* Merge commit 'cb4cb7b0ea12b791dde587b1acd504dbb4ec8f41'Michael Niedermayer2015-02-23
|\ | | | | | | | | | | | | | | | | | | * commit 'cb4cb7b0ea12b791dde587b1acd504dbb4ec8f41': qsv: Skip qsv.h compilation if qsv is not enabled Conflicts: libavcodec/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * qsv: Skip qsv.h compilation if qsv is not enabledDiego Biurrun2015-02-23
| |
* | Merge commit '061c489895d29049a88dc6118e4b639a273b31d6'Michael Niedermayer2015-02-23
|\| | | | | | | | | | | | | | | | | | | * commit '061c489895d29049a88dc6118e4b639a273b31d6': eamad: check for out of bounds read Conflicts: libavcodec/eamad.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * eamad: check for out of bounds readFederico Tomassetti2015-02-23
| | | | | | | | | | | | | | Bug-Id: CID 1257500 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '161442ff2c4b0dd8a5072c6bbe6bf55303fffccf'Michael Niedermayer2015-02-23
|\| | | | | | | | | | | | | * commit '161442ff2c4b0dd8a5072c6bbe6bf55303fffccf': mdec: check for out of bounds read Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mdec: check for out of bounds readFederico Tomassetti2015-02-23
| | | | | | | | | | | | | | Bug-Id: CID 1257501 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec/snowenc: Allocate and reference coded_frame correctlyMichael Niedermayer2015-02-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/roqvideoenc: Allocate and reference coded_frame correctlyMichael Niedermayer2015-02-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hqx: remove superfluous log messagePaul B Mahol2015-02-23
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '35c6ce76b107225a19eb33aea38857d2405882af'Michael Niedermayer2015-02-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '35c6ce76b107225a19eb33aea38857d2405882af': Canopus HQX decoder Conflicts: Changelog libavcodec/avcodec.h libavcodec/version.h tests/fate/video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Canopus HQX decoderVittorio Giovara2015-02-22
| | | | | | | | Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>.
| * hevc_deblock: Fix compilation with nasmCarl Eugen Hoyos2015-02-22
| | | | | | | | | | | | CC: libav-stable@libav.org Bug-Id: 795 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'e570f895cdccf2535a71fec1c607751ddb94fd5a'Michael Niedermayer2015-02-23
|\| | | | | | | | | | | | | | | | | | | * commit 'e570f895cdccf2535a71fec1c607751ddb94fd5a': libschroedinger: Check memory allocations Conflicts: libavcodec/libschroedinger.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libschroedinger: Check memory allocationsVittorio Giovara2015-02-22
| |
* | avcodec/a64multienc: Assert that the Packet size does not growMichael Niedermayer2015-02-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/a64multienc: simplify frame handling codeMichael Niedermayer2015-02-23
| | | | | | | | | | | | This also fixes a memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/a64multienc: fix use of uninitialized values in to_meta_with_cropAndreas Cadhalpun2015-02-23
| | | | | | | | | | | | | | Averaging over 2 pixels doesn't work correctly for the last pixel, because the rest of the buffer is not initialized. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/a64multienc: initialize mc_meta_charset to zeroAndreas Cadhalpun2015-02-23
| | | | | | | | | | | | This fixes the use of uninitialized values in avpriv_do_elbg. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/a64multienc: don't set incorrect packet sizeMichael Niedermayer2015-02-23
| | | | | | | | | | | | | | | | This fixes invalid reads of the packet buffer in av_dup_packet Based on patch by Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/a64multienc: use av_frame_ref instead of copying the frameAndreas Cadhalpun2015-02-23
| | | | | | | | | | | | This fixes freeing the frame buffer twice on cleanup leading to a crash. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/aacenc: Fix sample rate checkMichael Niedermayer2015-02-22
| | | | | | | | | | | | | | Fixes out of array read Fixes CID1257803, CID1257797, CID1257789, CID1257786 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: Fix memleak of mvsMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271053 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vorbisdec: Fix memleak, call cleanup on memory allocation failureMichael Niedermayer2015-02-22
| | | | | | | | | | Fixes CID1258478, CID1258476, CID1258475 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/wmaenc: Check extradata allocationsMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1257842 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | takdec: pad filter coeff buffer for DSP functionsChristophe Gisquet2015-02-22
| | | | | | | | | | | | | | | | | | Currently, a part of the loop has to be handled in plain C, because of DSP function requirements of having batches of 16 elements to process. Instead, pad the buffer with 0 where the DSP functions are overreading. Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/exr: fix memset first arg in reverse_lut()Paul B Mahol2015-02-22
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/libaacplus: Check for av_malloc() failureMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271046 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeglsenc: Check for memory allocation failuresMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271044 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libx264: Check for av_malloc() failureMichael Niedermayer2015-02-22
| | | | | | | | | | Fixes CID1257813 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libvpxenc: Check for av_malloc() failureMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271045 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libtheoraenc: Check for av_fast_realloc() failureMichael Niedermayer2015-02-22
| | | | | | | | | | Fixes CID1257799 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libtheoraenc: Check for stats allocation failureMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1257785 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a'Michael Niedermayer2015-02-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a': mpegaudio_parser: add MP3 ADU headers parser Conflicts: libavcodec/mpegaudio_parser.c libavcodec/mpegaudiodecheader.c libavcodec/version.h See: 8ca098f4445cd12d39b2c55b0dfb8c988b7b28ce Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegaudio_parser: add MP3 ADU headers parserGilles Chanteperdrix2015-02-21
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | avcodec/adpcm: use av_clip_intp2()Michael Niedermayer2015-02-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_mvs: Use av_clip_intp2()Michael Niedermayer2015-02-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>