summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/vorbisdec: Fix off by 1 error in ptns_to_readMichael Niedermayer2014-10-04
| | | | | | | | Fixes read of uninitialized memory Fixes: asan_heap-uaf_18dac2b_9_asan_heap-uaf_22eb375_208_beta3_test_small.ogg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/svq3: Dont memcpy AVFrameMichael Niedermayer2014-10-04
| | | | | | | | | This avoids out of array accesses Fixes: asan_heap-uaf_21f42e4_9_asan_heap-uaf_21f42e4_278_gl2.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/smc: fix off by 1 errorMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array access Fixes: asan_heap-oob_1685bf0_5_asan_heap-oob_1f35116_430_smc.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/qpeg: fix off by 1 error in MV bounds checkMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array access Fixes: asan_heap-oob_153760f_4_asan_heap-oob_1d7a4cf_164_VWbig6.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/gifdec: factorize interleave end handling outMichael Niedermayer2014-10-03
| | | | | | | | | also change it to a loop Fixes out of array access Fixes: asan_heap-oob_ca5410_8_asan_heap-oob_ca5410_97_ID_LSD_Size_Less_Then_Data_Inter_3.gif Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/cinepak: fix integer underflowMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array access Fixes: asan_heap-oob_4da0ba_6_asan_heap-oob_4da0ba_241_cvid_crash.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: Calculate MPNG bytewidth more defensivelyMichael Niedermayer2014-10-03
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: Check bits per pixel before setting monoblack pixel formatMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array accesses Fixes: asan_heap-oob_14dbfcf_4_asan_heap-oob_1ce5767_179_add_method_small.png Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/tiff: more completely check bpp/bppcountMichael Niedermayer2014-10-03
| | | | | | | | | Fixes pixel format selection Fixes out of array accesses Fixes: asan_heap-oob_1766029_6_asan_heap-oob_20aa045_332_cov_1823216757_m2-d1d366d7965db766c19a66c7a2ccbb6b.tif Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mmvideo: Bounds check 2nd line of HHV Intra blocksMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array access Fixes: asan_heap-oob_4da4f3_8_asan_heap-oob_4da4f3_419_scene1a.mm Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/h263dec: Fix decoding messenger.h263Michael Niedermayer2014-10-03
| | | | | | | | Fixes http://samples.mplayerhq.hu/V-codecs/h263/h263-raw/messenger.h263 Fixes regression since b239f3f6 Found-by: Josh Allmann Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/utils: Add case for jv to avcodec_align_dimensions2()Michael Niedermayer2014-10-03
| | | | | | | | Fixes out of array accesses Fixes: asan_heap-oob_12304aa_8_asan_heap-oob_4da4f3_300_intro.jv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86/mlpdec: add ff_mlp_rematrix_channel_{sse4,avx2}James Almer2014-10-02
| | | | | | | 2x to 2.5x faster than the C version. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* mlpdec: move rematrix_channels code to output_data()James Almer2014-10-02
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mjpegdec: check bits per pixel for changes similar to dimensionsMichael Niedermayer2014-10-03
| | | | | | | | Fixes out of array accesses Fixes: asan_heap-oob_16668e9_2_asan_heap-oob_16668e9_346_miss_congeniality_pegasus_mjpg.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/jpeglsdec: Check run value more completely in ls_decode_line()Michael Niedermayer2014-10-03
| | | | | | | | | | | previously it could have been by 1 too large Fixes out of array access Fixes: asan_heap-oob_12240f5_1_asan_heap-oob_12240f5_448_t8c1e3.jls Fixes: asan_heap-oob_12240f5_1_asan_heap-oob_12240f5_448_t8nde0.jls Fixes: asan_heap-oob_12240fa_1_asan_heap-oob_12240fa_448_t16e3.jls Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec: bump micro version for av_lockmgr_register() changes in ↵Michael Niedermayer2014-10-02
| | | | | | a950edb472e8823e34832c7313ba447b2db76f27 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/utils: av_lockmgr_register defines behavior on failure.Manfred Georg2014-10-02
| | | | | | | | | | The register function now specifies that the user callback should leave things in the same state that it found them on failure but that failure to destroy is ignored by the library. The register function is now explicit about its behavior on failure (it unregisters the previous callback and destroys all mutex). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec, avutil: allow more control about how samples are skippedwm42014-10-02
| | | | | | | | | | | | | | | Add CODEC_FLAG2_SKIP_MANUAL (exposed as "skip_manual"), which makes the decoder export sample skip information via side data, instead of applying it automatically. The format of the side data is the same as AV_PKT_DATA_SKIP_SAMPLES, but since AVPacket and AVFrame side data constants overlap, AV_FRAME_DATA_SKIP_SAMPLES needs to be introduced. This is useful for applications which want to do the timestamp calculations manually, or which actually want to retrieve the padding. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix compilation of jpeg2000dsp when disabling the encoder.Yusuke Nakamura2014-10-02
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Check for oom in the dirac parser.Carl Eugen Hoyos2014-10-02
| | | | Fixes ticket #3996.
* jpeg2000: split off inverse MCT decoding as Jpeg2000DSPJames Almer2014-10-02
| | | | | | | This makes the addition of arch optimized functions easier. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* x86/mpegvideoencdsp: improve ff_pix_sum16_sse2James Almer2014-10-01
| | | | | | | | | | ~15% faster. Also add an mmxext version that takes advantage of the new code, and build it alongside with the mmx version only on x86_32. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libx264: add avcintra-classMichael Niedermayer2014-10-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* hevc: reuse edge emu buffer for coefficientsChristophe Gisquet2014-10-01
| | | | | | | Kind of hackish but... Reviewed-by: Mickael Raulet <Mickael.Raulet@insa-rennes.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/utils: Force mutex to NULL after destruction.Manfred Georg2014-10-01
| | | | | | A badly behaving user provided mutex manager (such as that in OpenCV) may not reset the mutex to NULL on destruction. This can cause a problem for a later mutex manager (which may assert that the mutex is NULL before creating). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/bitstream_filter: Use av_bitstream_filter_next() instead of direct ↵Michael Niedermayer2014-09-30
| | | | | | access in av_bitstream_filter_init() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/srtdec: use AVBPrint APIClément Bœsch2014-09-30
|
* Kill timed SRTClément Bœsch2014-09-30
|
* avcodec/h264_mp4toannexb_bsf: use the given padding in ↵Benoit Fouet2014-09-30
| | | | | | h264_extradata_to_annexb(). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/h264_mp4toannexb_bsf: add a case when only SPS/PPS is in the stream.Benoit Fouet2014-09-30
| | | | | | | When only SPS or PPS is present in the stream, copy the missing one from AVCC before insertion to the output stream. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo_enc: Fix leak on bitstream buffer reallocationMichael Niedermayer2014-09-30
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo_enc: Allocate only a small buffer and reallocate as neededMichael Niedermayer2014-09-29
| | | | | | This should reduce the memory requirement Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'e3a00acde05c925617dc19b5373969d864bf8414'Michael Niedermayer2014-09-29
|\ | | | | | | | | | | | | * commit 'e3a00acde05c925617dc19b5373969d864bf8414': hevc: Initialize mergecand_list to 0 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hevc: Initialize mergecand_list to 0Luca Barbato2014-09-29
| | | | | | | | | | | | | | Unbreak cf6090dc6252f2b276aa4133e3d73a89f4c6046c. CC: libav-stable@libav.org Sample-Id: hevc-conformance-LTRPSPS_A_Qualcomm_1
* | avcodec/put_bits: Add rebase_put_bits()Michael Niedermayer2014-09-29
| | | | | | | | | | Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: Fix off by 1 error causing unneeded allocation in ↵Michael Niedermayer2014-09-29
| | | | | | | | | | | | | | ff_fast_malloc() Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo_enc: Only enforce rc_max_available_vbv_use on first ↵Michael Niedermayer2014-09-28
| | | | | | | | | | | | | | | | encoding attempt This reduces repeatly re-encoding to achieve VBV compliance Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/x86/fmtconvert: Fix operand size in ff_int32_to_float_fmul_array8_sse*Michael Niedermayer2014-09-28
| | | | | | | | | | | | Fixes acodec-dca2 fate failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1dec: Fixing is_intra, 2nd attemptMichael Niedermayer2014-09-28
| | | | | | | | | | | | | | | | This also un-does the fate changes from a52f443714b5c2a40ed272d8445f4c39220a4b69, leaving this fix without even small differences in the output, that is a sample for which this makes a vissible difference is very welcome Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1dec: fix is_intra block vs. mb bugMichael Niedermayer2014-09-28
| | | | | | | | | | | | | | | | | | | | Fixes CID1194380 There are no vissible differences in the changed fate samples. Only a tiny number of pixels change by tiny amounts in the frames i checked If someone has a file that shows a vissible difference, please post it. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libx265: enable psnr reporting when requested by the userMichael Niedermayer2014-09-28
| | | | | | | | | | | | | | | | This is similar to what is done in libx264.c Fixes Ticket3567 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libx264: mark unchanged pointer arguments as constMichael Niedermayer2014-09-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ac3enc_template: fix out of array readMichael Niedermayer2014-09-27
| | | | | | | | | | Found-by: Andreas Cadhalpun Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/subviewerdec: remove old compat codeClément Bœsch2014-09-27
| |
* | avcodec/microdvddec: remove old compat codeClément Bœsch2014-09-27
| |
* | hevc: remove CodingTreeChristophe Gisquet2014-09-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '4e03b2097ca59843ed65424a572b7acd5345f088'Michael Niedermayer2014-09-27
|\| | | | | | | | | | | | | | | | | | | * commit '4e03b2097ca59843ed65424a572b7acd5345f088': mpeg12: Always invoke the get_format() callback Conflicts: libavcodec/mpeg12dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpeg12: Always invoke the get_format() callbackRémi Denis-Courmont2014-09-26
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'ce42316321145c435029dc288c2b5f1d48519dde'Michael Niedermayer2014-09-27
|\| | | | | | | | | | | | | | | | | | | * commit 'ce42316321145c435029dc288c2b5f1d48519dde': h264: Always invoke the get_format() callback Conflicts: libavcodec/h264_slice.c Merged-by: Michael Niedermayer <michaelni@gmx.at>