Paul B Mahol
27b5d0e1e4
avfilter/vf_lagfun: increase filter precision
2021-02-11 00:45:08 +01:00
Michael Niedermayer
0a7c648e2d
avformat/wavdec: Consider AV_INPUT_BUFFER_PADDING_SIZE in set_spdif()
...
The buffer is read by using the bit reader
Fixes: out of array read
Fixes: 27539/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-5650565572591616
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:18:18 +01:00
Michael Niedermayer
a8fe78decd
avformat/rmdec: Check remaining space in debug av_log() loop
...
Fixes: Timeout (long -> 2 ms)
Fixes: 26709/clusterfuzz-testcase-minimized-ffmpeg_dem_IVR_fuzzer-5665833403285504
Fixes: 27522/clusterfuzz-testcase-minimized-ffmpeg_dem_IVR_fuzzer-6321071221112832
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:18:17 +01:00
Michael Niedermayer
f514113cfa
avformat/flvdec: Treat high ts byte as unsigned
...
Fixes: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 27516/clusterfuzz-testcase-minimized-ffmpeg_dem_KUX_fuzzer-5152854660349952
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:18:16 +01:00
Michael Niedermayer
0b78016b2d
avformat/mov: Ignore tags with invalid size during probing
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:14:47 +01:00
Michael Niedermayer
1ad6801a61
avformat/mov: Factor offset advancement out in probing
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:14:47 +01:00
Michael Niedermayer
941e747d66
avformat/mov: simplify size code in probing a bit
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:14:47 +01:00
Michael Niedermayer
fec4a2d232
avformat/mov: Support size = 1 and size = 0 special cases in probing
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 21:14:47 +01:00
Jan Ekström
752f14ff94
avformat/movenc: remove unnecessary HDR metadata log messages
...
These made sense before 3ebf449766
when the creation of these boxes was specifically requested by the
user, but now they have become unnecessary as they are just like
many other boxes: If the input has the information required, they
are written, otherwise they are not.
They were moved to verbose verbosity level (which happens to be
the last level still relatively usable), and now appear either once
(normal MP4 muxing), or thrice (with the faststart flag set) in
any normal MP4 usage, without giving much useful information. Thus,
remove them in their current form.
2021-02-10 21:35:21 +02:00
Paul B Mahol
4390573c44
avfilter: add exposure video filter
2021-02-10 19:23:48 +01:00
Paul B Mahol
579e4e57a2
avfilter: add aexciter audio filter
2021-02-10 19:21:01 +01:00
Paul B Mahol
129978af6b
avfilter/af_arnndn: skip array extra entries by looking for new line
2021-02-10 14:15:42 +01:00
Michael Niedermayer
2014b01352
avformat/samidec: Sanity check pts
...
Fixes: signed integer overflow: 0 - -9223372036854775808 cannot be represented in type 'long'
Fixes: 29743/clusterfuzz-testcase-minimized-ffmpeg_dem_SAMI_fuzzer-5499256859394048
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:30 +01:00
Michael Niedermayer
2a2082a41b
avcodec/jpeg2000dec: Check atom_size in jp2_find_codestream()
...
Fixes: Infinite loop
Fixes: 29722/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-6412228041506816
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:30 +01:00
Michael Niedermayer
3a24000e72
avcodec/mobiclip: Bound planar prediction value
...
Fixes: signed integer overflow: 2 * 1073741952 cannot be represented in type 'int'
Fixes: 26765/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-6594926936326144
Fixes: 29663/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-5169789012148224
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:30 +01:00
Michael Niedermayer
a0ceb0cdd4
avformat/avidec: Use 64bit in get_duration()
...
Fixes: signed integer overflow: 2147483424 + 8224 cannot be represented in type 'int'
Fixes: 29619/clusterfuzz-testcase-minimized-ffmpeg_dem_AVI_fuzzer-5191424373030912
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:30 +01:00
Michael Niedermayer
658f0606cb
avformat/mov: Check for duplicate st3d
...
Fixes: memleak
Fixes: 29585/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6594188688490496
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:30 +01:00
Michael Niedermayer
6c64351bb1
avformat/mvdec: Check for EOF in read_index()
...
Fixes: Timeout
Fixes: 29550/clusterfuzz-testcase-minimized-ffmpeg_dem_MV_fuzzer-5094307193290752
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
980900d991
avcodec/jpeglsdec: Fix k=16 in ls_get_code_regular()
...
Fixes: Timeout
Fixes: left shift of 33046 by 16 places cannot be represented in type 'int'
Fixes: 29258/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_fuzzer-4889231489105920
Fixes: 29515/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_fuzzer-6161940391002112
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
25f240fcb3
avformat/id3v2: Check the return from avio_get_str()
...
Fixes: out of array access
Fixes: 29446/clusterfuzz-testcase-minimized-ffmpeg_dem_AAC_fuzzer-5096222622875648
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
7a23952614
avutil/mathematics: Fix undefined negation in av_compare_ts()
...
Fixes: negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long'); cast to an unsigned type to negate this value to itself
Fixes: 29437/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4748510022991872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
1bda9bb68a
libavutil/common: Add FFABS64U()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
0791a515d3
avcodec/hevc_sei: Check payload size in decode_nal_sei_message()
...
Fixes: out of array access
Fixes: 29392/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-4821602850177024.fuzz
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Michael Niedermayer
8574fcbfc7
libavutil/eval: Remove CONFIG_TRAPV special handling
...
Fixes: division by zero
Fixes: 29555/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVO_fuzzer-5149951447400448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-10 12:28:29 +01:00
Paul B Mahol
aa8adc9206
avfilter/vf_datascope: add commands support
2021-02-10 11:28:47 +01:00
Bohan Li
82aab8a4ee
avcodec/libaomenc: add support for setting arbitrary libaom options
...
A new key & value API lets us gain access to newly added parameters
without adding explicit support for them in our wrapper. Add an
option utilizing this functionality in a similar manner to other
encoder libraries' wrappers.
Signed-off-by: Bohan Li <bohanli@google.com >
2021-02-10 11:52:46 +02:00
Paul B Mahol
e0fd35d867
avformat/fitsenc: write DATAMIN/DATAMAX to encoded output
...
There is no point in doing normalization when such files are decoded.
Update fate test with new results.
2021-02-10 00:03:38 +01:00
Paul B Mahol
4aef642cfd
avcodec/fitsdec: properly initialize header->data_max
2021-02-10 00:03:38 +01:00
Paul B Mahol
199301a03a
avfilter/af_arnndn: make model opening errors more verbose
...
Also return proper error code.
2021-02-09 23:56:11 +01:00
Michael Niedermayer
2c60eb6c5a
avformat/mov: factor size out of probe code
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-09 19:37:27 +01:00
Michael Niedermayer
5552ceaf56
avformat/wtvdec: Check len in parse_chunks() to avoid overflow
...
Fixes: signed integer overflow: 2147483647 + 7 cannot be represented in type 'int'
Fixes: 30084/clusterfuzz-testcase-minimized-ffmpeg_dem_WTV_fuzzer-6192261941559296
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-09 19:37:27 +01:00
Michael Niedermayer
69754e07f5
avformat/wtvdec: Check for EOF before potentially reseting the eof state
...
Fixes: infinite loop
Fixes: 28042/clusterfuzz-testcase-minimized-ffmpeg_dem_WTV_fuzzer-6311288967528448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-09 19:37:27 +01:00
Michael Niedermayer
2c8cd4490a
avformat/asfdec_f: Add an additional check for the extradata size
...
Fixes: OOM
Fixes: 30066/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_fuzzer-6182309126602752
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-09 19:37:27 +01:00
Michael Niedermayer
7e5034f97e
avformat/3dostr: Check sample_rate
...
Fixes: signed integer overflow: -1268324762623155200 * 8 cannot be represented in type 'long'
Fixes: 30123/clusterfuzz-testcase-minimized-ffmpeg_dem_THREEDOSTR_fuzzer-6710765123928064
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-02-09 19:37:27 +01:00
Paul B Mahol
d7cb8c51f0
avfilter/vf_curves: add commands support
2021-02-09 18:20:15 +01:00
Paul B Mahol
b6327612ab
avcodec: add cri parser
2021-02-09 15:01:34 +01:00
Paul B Mahol
483cf7a183
avcodec/argo: fix linesize for RLE? in PAL8 mode
2021-02-09 14:18:46 +01:00
Paul B Mahol
cfcc36240f
avfilter/vf_framepack: add >8 format support
2021-02-09 12:29:04 +01:00
Paul B Mahol
73ff84c3d4
avfilter/vf_swaprect: add support for commands
2021-02-09 11:39:26 +01:00
Paul B Mahol
ca042675ee
avfilter/vf_maskfun: add support for commands
2021-02-09 11:24:31 +01:00
Paul B Mahol
8e027ca817
avfilter/vf_zscale: switch verbose log to trace
...
Not needed in verbose mode.
2021-02-09 10:37:42 +01:00
Paul B Mahol
a00ff56321
avfilter/vf_lut: add support for commands
...
While here remove excessive log and uninit() call in negate_init().
2021-02-08 16:37:23 +01:00
Paul B Mahol
dd01165f19
avfilter/vf_deband: add support for commands
2021-02-08 16:10:51 +01:00
Paul B Mahol
178a0d6f7d
avfilter/vf_deband: avoid doubles
2021-02-08 16:10:51 +01:00
Andreas Rheinhardt
8d21eccd26
avcodec/g722enc: Validate parameters before using them
...
In case trellis is outside of 0..23, an invalid shift and/or a signed
integer overflow happens; furthermore, it can lead to the request to
allocate nonsense amounts of memory. So validate first.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2021-02-08 13:27:22 +01:00
Paul B Mahol
a773455c4f
avfilter/vf_thumbnail: add support for rest of packed rgb formats
2021-02-08 13:01:28 +01:00
Paul B Mahol
3b65c848a6
avfilter/vf_thumbnail: add support for YUV and GBRP formats
2021-02-08 12:45:49 +01:00
Anton Khirnov
cc4feff861
vf_pp: remove unnecessary free
...
ff_qp_table_extract() frees the table on failure.
Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2021-02-08 11:06:29 +01:00
Anton Khirnov
fffc35b870
mjpegdec: stop setting the QP table
...
MJPEG does not have a single quantiser scale, so this does not fit into
the intended API use.
This removes the last use of the long-deprecated QP table API.
2021-02-08 11:06:10 +01:00
Paul B Mahol
89f78dd0fe
avfilter/vf_lut3d: lut3d, haldclut: add support for commands
2021-02-08 00:55:07 +01:00