summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/ac3enc: Use avpriv_float_dsp_alloc()Michael Niedermayer2014-11-29
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: apng: fix output buffer filling when no blending is needed.Benoit Fouet2014-11-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ppc/h264qpel_template: protect unistd.h by #if HAVE_UNISTD_HMichael Niedermayer2014-11-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: allow for some code path optimizations.Benoit Fouet2014-11-28
| | | | | | | Use 'if (CONFIG_APNG_DECODER)' where needed, so that the compiler can optimize out some portion of code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: do not blend on transparent blackBenoit Fouet2014-11-28
| | | | | | | | There is no need to memset the zlib output buffer, as there is no blending happening there. Instead, do not blend when the dispose operation is set to 'background' (tranparent black). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ppc/h264qpel: POWER LE support for put_pixels16_l2_altivec() and ↵Rong Yan2014-11-28
| | | | | | | | avg_pixels16_l2_altivec() add put_unligned_store() and avg_unligned_store() macros Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ppc/h264qpel_template: POWER LE support for ↵Rong Yan2014-11-28
| | | | | | | | PREFIX_h264_qpel16_h_lowpass_altivec() PREFIX_h264_qpel16_v_lowpass_altivec() PREFIX_h264_qpel16_hv_lowpass_altivec() add load_alignment() macro Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ppc/h264chroma_template: POWER LE support for ↵Rong Yan2014-11-28
| | | | | | | | PREFIX_h264_chroma_mc8_altivec() PREFIX_no_rnd_vc1_chroma_mc8_altivec() CHROMA_MC8_ALTIVEC_CORE_SIMPLE() CHROMA_MC8_ALTIVEC_CORE() add marcos GET_VSRC1() GET_VSRC() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/ppc/h264dsp: POWER LE support for h264_idct8_add_altivec() ↵Rong Yan2014-11-28
| | | | | | | | h264_idct_dc_add_internal() h264_loop_filter_luma_altivec() write16x4() VEC_1D_DCT() weight_h264_W_altivec() biweight_h264_W_altivec() VEC_LOAD_U8_ADD_S16_STORE_U8() ALTIVEC_STORE_SUM_CLIP() add marcos GET_2PERM() dstv_load() vdst_load() dest_unligned_store() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/hevc_ps: Check num_long_term_ref_pics_spsMichael Niedermayer2014-11-28
| | | | | | | Fixes out of array access Fixes: signal_sigsegv_35bd0f0_1182_cov_791726764_STRUCT_B_Samsung_4.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: add support for 'over' blend operation for 'none' dispose ↵Benoit Fouet2014-11-28
| | | | | | operation. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/pngdec: split P frames handling to a separate function.Benoit Fouet2014-11-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56'Michael Niedermayer2014-11-28
|\ | | | | | | | | | | | | * commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56': opusdec: make sure all substreams have the same number of coded samples Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * opusdec: make sure all substreams have the same number of coded samplesAnton Khirnov2014-11-27
| | | | | | | | | | | | Fixes invalid writes with invalid multichannel streams. CC:libav-stable@libav.org
| * vorbis_parser: Include stdint.h in the header, to make it work standaloneMartin Storsjö2014-11-25
| | | | | | | | | | | | This fixes "make checkheaders". Signed-off-by: Martin Storsjö <martin@martin.st>
| * hnm4: change width/height to int to fix hypothetical integer overflowsMichael Niedermayer2014-11-25
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1135770 / CID 1135771
* | avcodec/mjpegdec: Fix integer overflow in shiftMichael Niedermayer2014-11-27
| | | | | | | | | | | | Fixes: signal_sigabrt_7ffff6ac7bb9_2683_cov_4120310995_m_ijpg.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_ps: More complete window resetMichael Niedermayer2014-11-27
| | | | | | | | | | | | | | Fixes out of array read Fixes: signal_sigsegv_35bcf26_471_cov_2806540268_CAINIT_A_SHARP_4.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_ps: Check return code from pps_range_extensions()Michael Niedermayer2014-11-27
| | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_177e222_885_cov_1532528832_MERGE_D_TI_3.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/options: fix leaks in avcodec_free_contextLukasz Marek2014-11-26
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | v210enc: Add SIMD optimised 8-bit and 10-bit encodersKieran Kunhya2014-11-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/rawdec: Check the return code of avpicture_get_size()Michael Niedermayer2014-11-26
| | | | | | | | | | | | | | Fixes out of array access Fixes: asan_heap-oob_22388d0_3435_cov_3297128910_small_roll5_FlashCine1.cine Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pngdec: Fix paeth prediction with small imagesMichael Niedermayer2014-11-26
| | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_20b0a06_1962_cov_1907976991_delete_node_small.png Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pngdec: Check IHDR/IDAT orderMichael Niedermayer2014-11-26
| | | | | | | | | | | | | | Fixes out of array access Fixes: asan_heap-oob_20a6c26_2690_cov_3434532168_mail.png Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacdec: fix off by 1 errorMichael Niedermayer2014-11-26
| | | | | | | | | | | | | | Fixes assertion failure Fixes: signal_sigsegv_324b284_1980_dilvie___the_dragonfly.flac Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacdec: Call ff_flacdsp_init() unconditionallyMichael Niedermayer2014-11-26
| | | | | | | | | | | | | | Fixes out of array access Fixes: signal_sigsegv_324b135_3398_cov_246853371_short.flac Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/utils: free private options on avcodec_open2 failLukasz Marek2014-11-25
| | | | | | | | | | | | It protects leaking string/binary/dict options from priv context. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavc/libxvid: return meaningful error codesLukasz Marek2014-11-25
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavc/avuienc: fix mem leak in case of init failureLukasz Marek2014-11-25
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | avcodec/huffyuvdec: apply vertical filter in steps of 1 line for interlaced BGRAMichael Niedermayer2014-11-25
| | | | | | | | | | | | | | Fixes out of array read Fixes: signal_sigsegv_3287332_2301_cov_2994954934_huffyuv.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: Check that the data is complete in avpriv_bprint_to_extradata()Michael Niedermayer2014-11-25
| | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_4d2250_814_cov_2745172097_JACOsub_capability_tester.jss Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: Fix context fields becoming inconsistentMichael Niedermayer2014-11-25
| | | | | | | | | | | | | | Fixes out of array access Fixes: asan_heap-oob_1ca4f85_2760_cov_144449187_miss_congeniality_pegasus_ljpg.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '16158da9607f2f84232d3dd381406b2f2449ec74'Michael Niedermayer2014-11-25
|\| | | | | | | | | | | | | | | * commit '16158da9607f2f84232d3dd381406b2f2449ec74': hnm4: Use av_image_check_size See: e23b18321fb5cffb6e05d0b0ef00de9733f560da Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hnm4: Use av_image_check_sizeLuca Barbato2014-11-25
| | | | | | | | | | | | | | As done for all the other codecs not calling it indirectly. CC: libav-stable@libav.org Bug-Id: CID 1135770 / CID 1135771
| * vc1: Use the correct shift amountMichael Niedermayer2014-11-25
| | | | | | | | | | | | | | | | | | `is_intra` is a 6bits bitfield. CC: libav-stable@libav.org Bug-Id: CID 1194380 / CID 1194381 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'd25afb579facc83fd3a839f21411124d0b09f0ba'Michael Niedermayer2014-11-25
|\| | | | | | | | | | | | | | | | | | | | | * commit 'd25afb579facc83fd3a839f21411124d0b09f0ba': vc1: Set the is_intra bitfield to all 1 when needed Conflicts: libavcodec/vc1_block.c See: 04152a31cb41a7ca3cc0bde9d962454fc30bab9c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: Set the is_intra bitfield to all 1 when neededLuca Barbato2014-11-25
| | | | | | | | | | | | | | Keep the code as similar as possible across the codepaths to ease spotting it for factorization. Based on a patch from Michael Niedermayer <michaelni@gmx.at>.
* | Merge commit 'b67138598ce158e3083f6295a27b63e2065d5ecb'Michael Niedermayer2014-11-25
|\| | | | | | | | | | | | | | | | | | | * commit 'b67138598ce158e3083f6295a27b63e2065d5ecb': vc1: Simplify a little setting the intra variables Conflicts: libavcodec/vc1_block.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1: Simplify a little setting the intra variablesLuca Barbato2014-11-25
| | | | | | | | | | | | | | | | The code currently set the information in at least 4 places, spare some pointless loops. Make the code in the loop a little uniform to make easier factorize it out later.
| * vorbis_parser: Move vp check to avoid a null pointer dereferenceMichael Niedermayer2014-11-25
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1251347
| * lpc: remove unneeded {}Michael Niedermayer2014-11-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bc75b64cff37d58f3944e2da3da45c37f35f019a'Michael Niedermayer2014-11-25
|\| | | | | | | | | | | | | | | | | | | | | * commit 'bc75b64cff37d58f3944e2da3da45c37f35f019a': vc1pred: remove logically dead code Conflicts: libavcodec/vc1_pred.c See: fca435fee167da981f024e35d9fef4e6179b8061 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1pred: remove logically dead codeVittorio Giovara2014-11-25
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1245699 / CID 1245700
* | Include config.h from huffyuvdsp.h.Carl Eugen Hoyos2014-11-25
| | | | | | | | Fixes a warning about undefined HAVE_BIGENDIAN when running make checkheaders.
* | Include stddef from snow_dwt.h.Carl Eugen Hoyos2014-11-25
| | | | | | | | Fixes make checkheaders.
* | avcodec/mjpegdec: Add YUVA420 formats to *scale assertsMichael Niedermayer2014-11-25
| | | | | | | | | | | | | | Fixes assertion failure Fixes: signal_sigabrt_7ffff6ac7bb9_2042_cov_2593130068_ef1f8a057bb6056674fad92f6b8c0acd.jpg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: Print the number of bits in the unsupported pixel format errorMichael Niedermayer2014-11-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: Check for pixfmtid 0x42111100 || 0x24111100 with more than ↵Michael Niedermayer2014-11-25
| | | | | | | | | | | | | | | | | | | | | | 8 bits These cases are not supported yet Fixes assertion failure Fixes: signal_sigabrt_7ffff6ac7bb9_1_cov_1553101927_00.jpg Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '208f3abb917757743313da0da714e525e03159d2'Michael Niedermayer2014-11-24
|\| | | | | | | | | | | | | | | * commit '208f3abb917757743313da0da714e525e03159d2': aacsbr: always initialize max_qmf_subbands See: c6d3b3be1555257ff3f88da6b8dca2158dad2a85 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * aacsbr: always initialize max_qmf_subbandsVittorio Giovara2014-11-24
| | | | | | | | Fixes a wordly warning from clang -Wsometimes-uninitialized.