James Almer
39d5acbd09
avcodec/libdav1d: set AVFrame reordered_opaque
...
Fixes ticket #8300
Signed-off-by: James Almer <jamrial@gmail.com >
2019-10-17 12:35:28 -03:00
Andreas Rheinhardt
ba191c0ce0
vp9_superframe: Avoid allocations and copies of packet structures
...
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 >
2019-10-17 12:35:23 -03:00
Michael Niedermayer
0279e727e9
avcodec/cavsdec: Set ret on errors in decode_pic()
...
Fixes regression and fate failure on some machienes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-17 13:17:18 +02:00
Andreas Rheinhardt
097c917c14
avcodec/ac3enc: Fix memleak
...
Fixes ticket #8294 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2019-10-17 12:33:50 +02:00
Andreas Rheinhardt
6aae322120
avfilter/af_arnndn: Remove superfluous qualifier
...
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 >
2019-10-17 12:30:24 +02:00
Gyan Doshi
9c820ebe90
doc/filters: fixes for scale filter
...
Adjusted formatting and prose for option force_divisible_by in scale filter
2019-10-17 15:46:35 +05:30
Paul B Mahol
8f63c4e72a
avfilter/vf_dedot: fix crash
...
Fixes #8299
2019-10-17 11:51:22 +02:00
Paul B Mahol
ce40188bc0
avfilter/vf_amplify: cosmetics
2019-10-17 11:32:27 +02:00
Paul B Mahol
3488e0977c
avfilter/vf_random: fix memory leaks
...
Fixes #8296
2019-10-17 11:31:53 +02:00
Paul B Mahol
fb7b222b91
avfilter/af_arnndn: make sure that vad_output nb_neurons is always 1
2019-10-17 11:02:02 +02:00
Paul B Mahol
1e35519fe0
avfilter/vf_gblur: fix undefined behaviour
...
Fixes #8292
2019-10-16 19:29:56 +02:00
Michael Niedermayer
c70d547751
avcodec/sbcdec: Fix integer overflows in sbc_synthesize_eight()
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
2f66e8436d
avcodec/adpcm: Check initial predictor for ADPCM_IMA_EA_EACS
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
07732f12a4
avcodec/g723_1dec: Fix overflow in shift
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
5c072c9ed7
avcodec/apedec: Fix integer overflow in predictor_update_3930()
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
0c61661a2c
avcodec/g729postfilter: Fix undefined intermediate pointers
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
6a4fdbf112
avcodec/g729postfilter: Fix undefined shifts
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
2b93f52cd6
avcodec/lsp: Fix undefined shifts in lsp2poly()
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
ca3d8b471f
avcodec/aacdec_template: Check decode_extension_payload() for failure
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
8695fbec57
avcodec/adpcm: Fix left shifts in AV_CODEC_ID_ADPCM_EA
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
5ce3c9eadc
avcodec/smacker: cleanup on errors in smka_decode_frame()
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
1d3f7e6a72
tools/target_dec_fuzzer: Adjust threshold for EATGV
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
9e32c47102
tools/target_dec_fuzzer: Adjust threshold for SCPR
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
e7113704b2
avcodec/cavsdec: Check remaining bitstream in the main loop in decode_pic()
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
ea770eb559
avformat/shortendec: Check k in probe
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
cf7f35ace5
tools/target_dec_fuzzer: Adjust threshold for MSZH
...
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 >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
d260621089
swscale/output: Avoid 64bit in Alpha in yuv2ya16_X_c_template()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
3e6682931b
swscale/output: Correct Alpha in yuv2ya16_X_c_template()
...
Untested, no testcase
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 19:17:57 +02:00
Michael Niedermayer
4f4ca675e5
swscale/output: Implement Luma computation from yuv2ya16_X_c_template() without 64bit
...
This also reverts 21838cad2f
The revert is in this commit to avoid 2 fate updates
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 19:17:57 +02:00
Paul B Mahol
e831f60100
fate/source: add libavfilter/af_arnndn.c
2019-10-16 18:37:29 +02:00
Paul B Mahol
98ae6b0a4d
vafilter/af_replaygain: fix undefined behaviour
...
Fixes #8291
2019-10-16 18:28:32 +02:00
Paul B Mahol
71bceb06e6
avfilter/avf_abitscope: fix undefined behaviour
...
Fixes #8289
2019-10-16 18:28:32 +02:00
Paul B Mahol
4fe4772a58
avfilter/vf_colorchannelmixer: do not use pointer if there is no alpha
...
Fixes #8288
2019-10-16 18:28:32 +02:00
Paul B Mahol
932913f0b4
avfilter/vf_edgedetect: fix undefined behaviour
...
Fixes #8287
2019-10-16 18:28:32 +02:00
Michael Niedermayer
7b94b22261
avcodec/apedec: Check remaining space in decode_array_0000()
...
Fixes: Timeout (? -> 2sec)
Fixes: 17886/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5728165124636672
Fixes: 18131/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5710803432374272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 18:03:26 +02:00
Michael Niedermayer
926221ef84
avcodec/apedec: Check error flag after entropy_decode*
...
Fixes: 17886/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5728165124636672
Fixes: 18131/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5710803432374272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-16 18:03:26 +02:00
Paul B Mahol
1a0c584abc
avfilter/f_reverse: fix memory leaks
...
Fixes #8283
2019-10-16 16:27:06 +02:00
Paul B Mahol
b0bfa3699c
avfilter: add arnndn filter
2019-10-16 15:13:59 +02:00
Paul B Mahol
c3985c0ea8
avfilter/vf_atadenoise: compensate for small overall brightness loss
...
This is very hard to spot.
2019-10-16 13:18:47 +02:00
Paul B Mahol
b20dee813a
avfilter/vsrc_testsrc: rgbtestsrc: fix undefined behaviour
...
Fixes #8238
2019-10-16 12:37:05 +02:00
Paul B Mahol
64a805883d
avfilter/vf_gblur: fix heap-buffer overflow
...
Fixes #8282
2019-10-16 12:13:04 +02:00
Andriy Gelman
e14f5fd0a6
avformat/chromaprint: Fix writing raw fingerprint
...
The pointer fp after the call to chromaprint_get_raw_fingerpoint() points to an array
of uint32_t whereas the current code assumed just a char stream. Thus when writing the
raw fingerprint, the output would be truncated by a factor of 4.
For reference the declaration of the function from chromaprint.h is:
int chromaprint_get_raw_fingerprint(ChromaprintContext *ctx, uint32_t **fingerprint, int *size);
2019-10-16 10:34:51 +05:30
Paul B Mahol
29dac2927f
avfilter/af_afade: make sure that in is available
2019-10-16 00:59:30 +02:00
Guo, Yejun
2558e62713
avfilter/dnn: unify the layer load function in native mode
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com >
Signed-off-by: Pedro Arthur <bygrandao@gmail.com >
2019-10-15 18:56:54 -03:00
Guo, Yejun
3fd5ac7e92
avfilter/dnn: unify the layer execution function in native mode
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com >
Signed-off-by: Pedro Arthur <bygrandao@gmail.com >
2019-10-15 18:56:25 -03:00
Guo, Yejun
b78dc27bba
avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts
...
and also change CONV to DLT_CONV2D for better description
Signed-off-by: Guo, Yejun <yejun.guo@intel.com >
Signed-off-by: Pedro Arthur <bygrandao@gmail.com >
2019-10-15 16:35:39 -03:00
James Almer
dd01947397
avformat/latmenc: abort if no extradata is available
...
Fixes ticket #8273 .
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2019-10-15 13:04:44 -03:00
Paul B Mahol
f2598484b8
avfilter/vf_bm3d: make sure nb_jobs is at least 1
2019-10-15 17:59:43 +02:00
Michael Niedermayer
ec9d48da19
tools/target_dec_fuzzer: Also fuzz keyframe & disposal flags
...
This should improve coverage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-15 17:09:22 +02:00
hwren
e71c241bea
lavc/libxavs2: fix parameter setting result determination
...
Signed-off-by: hwren <hwrenx@126.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-10-15 17:07:50 +02:00