summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avformat/mpeg: check av_strdup() return valueSteven Liu2019-10-19
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/libsrt: check av_strdup() return value and fix memleakSteven Liu2019-10-19
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: check av_strdup() return valueSteven Liu2019-10-19
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/cinedec: check av_strdup() return valueSteven Liu2019-10-19
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/mpegenc: check for stream private data during deinitJames Almer2019-10-18
| | | | | | Prevents pointer dereferences when streams were not fully initialized. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/nutenc: don't allocate a dynamic AVIOContext if no index is going ↵James Almer2019-10-18
| | | | | | | | to be written Fixes ticket #8295 Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_shuffleplanes: add mising query_formats()Paul B Mahol2019-10-18
| | | | Fixes #8298
* avfilter/vf_maskfun: fix memleakPaul B Mahol2019-10-18
| | | | Fixes #8305
* avfilter/buffersink: cosmeticsPaul B Mahol2019-10-18
|
* avfilter/vf_colorspace: fix memmory leaksPaul B Mahol2019-10-18
| | | | Fixes #8303
* avfilter/af_acrossover: fix memory leakPaul B Mahol2019-10-18
| | | | Fixes #8304
* lavf/hlsenc: fix memory leakJun Zhao2019-10-18
| | | | | | | fix memory leak Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* fftools/ffmpeg_opt: add error handle if av_asprintf return nullJun Zhao2019-10-18
| | | | | | | add error handle if av_asprintf return null. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/avf_showspectrum: add error handle if av_asprintf return nullJun Zhao2019-10-18
| | | | | | add error handle if av_asprintf return null. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/x86/vf_atadenoise: add SIMD for serial tooPaul B Mahol2019-10-17
|
* avfilter/vf_atadenoise: add option to use additional algorithmPaul B Mahol2019-10-17
|
* avfilter/vf_adadenoise: add x86 SIMDPaul B Mahol2019-10-17
|
* mpeg4_unpack_bframes: Avoid allocations and copies of packet structuresAndreas Rheinhardt2019-10-17
| | | | | | | | | | | | | | | | | | | | | | 1. Since bd90a2ec, mpeg4_unpack_bframes caches whole packets instead of just the pointer to the buffer and the buffer's size in order to be able to make use of refcounting to avoid copying of data; this unfortunately introduced copies of packet structures and side data (if existing), although the only fields that are needed are the buffer-related ones (data, size and buf). This can be changed without compromising the advantages of refcounting by storing a reference to the buffer. 2. This change also makes it easy to use only one packet throughout so that an allocation and free of an AVPacket structure per filtered packet can be saved by switching to ff_bsf_get_packet_ref. 3. Furthermore, this commit also fixes a memleak introduced in bd90a2ec: If a stored b_frame with side data was used for a later frame, the side data would leak when the input frame's properties were copied into the output frame. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/binkaudio: Check sample rateMichael Niedermayer2019-10-17
| | | | | | | | | | Fixes: signed integer overflow: 1092624416 * 2 cannot be represented in type 'int' Fixes: 18045/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINKAUDIO_RDFT_fuzzer-5718519492116480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegenc: Fix memleaks and return valuesAndreas Rheinhardt2019-10-17
| | | | | | | | | | | | | | | | | | If there is an error in mpeg_mux_init() (the write_header function of the various MPEG-PS muxers), two things might happen: 1. Several fifos might leak. Instead of freeing them, the goto fail part of the functions freed the private data of the AVStreams instead, although this will be freed later in free_stream() anyway. 2. And if the function is exited via goto fail, it automatically returned AVERROR(ENOMEM), although this is also used when the error is not a memory allocation failure. Both of these issues happened in ticket #8284 and have been fixed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libdav1d: set AVFrame reordered_opaqueJames Almer2019-10-17
| | | | | | Fixes ticket #8300 Signed-off-by: James Almer <jamrial@gmail.com>
* vp9_superframe: Avoid allocations and copies of packet structuresAndreas Rheinhardt2019-10-17
| | | | | | | | | | | | Up until now, the vp9_superframe bsf used distinct packets for input and output. But at no point in the bsf are the input and output packets used at the same time (except during a call to av_packet_move_ref()), so that one can avoid using two packets if one switches to ff_bsf_get_packet_ref at the same time. This also saves one malloc+free of an AVPacket structure per filtered packet. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cavsdec: Set ret on errors in decode_pic()Michael Niedermayer2019-10-17
| | | | | | Fixes regression and fate failure on some machienes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ac3enc: Fix memleakAndreas Rheinhardt2019-10-17
| | | | | | Fixes ticket #8294. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avfilter/af_arnndn: Remove superfluous qualifierAndreas Rheinhardt2019-10-17
| | | | | | | | | remove_doubling() returned a const float, but returning qualified types is pointless anyway. This is all the more important given that GCC 4.2.1 (and maybe other compilers, too) seems to treat this as an error as several FATE units that don't compile any more show. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* doc/filters: fixes for scale filterGyan Doshi2019-10-17
| | | | Adjusted formatting and prose for option force_divisible_by in scale filter
* avfilter/vf_dedot: fix crashPaul B Mahol2019-10-17
| | | | Fixes #8299
* avfilter/vf_amplify: cosmeticsPaul B Mahol2019-10-17
|
* avfilter/vf_random: fix memory leaksPaul B Mahol2019-10-17
| | | | Fixes #8296
* avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1Paul B Mahol2019-10-17
|
* avfilter/vf_gblur: fix undefined behaviourPaul B Mahol2019-10-16
| | | | Fixes #8292
* avcodec/sbcdec: Fix integer overflows in sbc_synthesize_eight()Michael Niedermayer2019-10-16
| | | | | | | | Fixes: signed integer overflow: 518484152 + 1868182638 cannot be represented in type 'int' Fixes: 17732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SBC_fuzzer-5663738132168704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adpcm: Check initial predictor for ADPCM_IMA_EA_EACSMichael Niedermayer2019-10-16
| | | | | | | | Fixes: signed integer overflow: -2147483360 - 631 cannot be represented in type 'int' Fixes: 17701/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_IMA_EA_EACS_fuzzer-5711517319692288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g723_1dec: Fix overflow in shiftMichael Niedermayer2019-10-16
| | | | | | | | Fixes: shift exponent 1008 is too large for 32-bit type 'int' Fixes: 17700/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G723_1_fuzzer-5707633436131328 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/apedec: Fix integer overflow in predictor_update_3930()Michael Niedermayer2019-10-16
| | | | | | | | Fixes: signed integer overflow: -69555262 * 31 cannot be represented in type 'int' Fixes: 17698/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5728970447781888 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix undefined intermediate pointersMichael Niedermayer2019-10-16
| | | | | | | | Fixes: index -49 out of bounds for type 'int16_t [192]' Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g729postfilter: Fix undefined shiftsMichael Niedermayer2019-10-16
| | | | | | | | Fixes: left shift of negative value -12 Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/lsp: Fix undefined shifts in lsp2poly()Michael Niedermayer2019-10-16
| | | | | | | | Fixes: left shift of negative value -30635 Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacdec_template: Check decode_extension_payload() for failureMichael Niedermayer2019-10-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adpcm: Fix left shifts in AV_CODEC_ID_ADPCM_EAMichael Niedermayer2019-10-16
| | | | | | | | Fixes: left shift of negative value -1 Fixes: 17683/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_EA_R2_fuzzer-5111690013704192 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/smacker: cleanup on errors in smka_decode_frame()Michael Niedermayer2019-10-16
| | | | | | | | | Fixes: multiple memleaks Fixes: 17660/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKAUD_fuzzer-5689769928949760 Fixes: 18064/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKAUD_fuzzer-5631086809317376 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust threshold for EATGVMichael Niedermayer2019-10-16
| | | | | | | | Fixes: Timeout (26sec -> 9sec) Fixes: 17645/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EATGV_fuzzer-5717065922510848 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust threshold for SCPRMichael Niedermayer2019-10-16
| | | | | | | | Fixes: Timeout (46sec -> 7sec) Fixes: 17644/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5715704283660288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cavsdec: Check remaining bitstream in the main loop in decode_pic()Michael Niedermayer2019-10-16
| | | | | | | | Fixes: Timeout (149sec ->1sec) Fixes: 17311/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CAVS_fuzzer-5679368642232320 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/shortendec: Check k in probeMichael Niedermayer2019-10-16
| | | | | | | | Fixes: Assertion failure Fixes: 17640/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5708767475269632 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust threshold for MSZHMichael Niedermayer2019-10-16
| | | | | | | | Fixes: Timeout (250sec -> 6sec) Fixes: 17627/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSZH_fuzzer-5643017129558016 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/output: Avoid 64bit in Alpha in yuv2ya16_X_c_template()Michael Niedermayer2019-10-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/output: Correct Alpha in yuv2ya16_X_c_template()Michael Niedermayer2019-10-16
| | | | | | Untested, no testcase Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/output: Implement Luma computation from yuv2ya16_X_c_template() ↵Michael Niedermayer2019-10-16
| | | | | | | | | without 64bit This also reverts 21838cad2fc44023ad85e35d5c677e2f8d29a0ef The revert is in this commit to avoid 2 fate updates Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/source: add libavfilter/af_arnndn.cPaul B Mahol2019-10-16
|