Michael Niedermayer
6fbd4d2285
avcodec/tiff: Check tile_length and tile_width
...
Fixes: Division by 0
Fixes: 49235/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5495613847896064
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 76112c2b41
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:31:16 +02:00
Michael Niedermayer
fa511b03d3
avcodec/mss4: Check image size with av_image_check_size2()
...
Fixes: Timeout
Fixes: 48418/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MTS2_fuzzer-4834851466903552
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4e145f1dcd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:16:52 +02:00
Michael Niedermayer
5767941df8
avformat/flvdec: Check for EOF in index reading
...
Fixes: Timeout
Fixes: 47992/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-6020443879899136
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ceff5d7b74
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:15:48 +02:00
Michael Niedermayer
e6584a3f19
avformat/nutdec: Check get_packetheader() in mainheader
...
Fixes; Timeout
Fixes: 48794/clusterfuzz-testcase-minimized-ffmpeg_dem_NUT_fuzzer-6524604713140224
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b5de084aa6
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:15:14 +02:00
Michael Niedermayer
e8a51675ea
avformat/mov: Check for EOF in mov_read_iloc()
...
Fixes: Timeout
Fixes: 49216/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6563000529584128
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 744ad45c44
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:14:53 +02:00
Michael Niedermayer
1c06f776e6
avformat/asfdec_f: Use 64bit for packet start time
...
Fixes: signed integer overflow: 2147483647 + 32 cannot be represented in type 'int'
Fixes: 49014/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_fuzzer-6314973315334144
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8ed78486fc
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:12:24 +02:00
Michael Niedermayer
e95f80c8df
avcodec/exr: Check x/ysize
...
Fixes: OOM
Fixes: 48911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6352002510094336
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 614a4d1476
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 17:12:03 +02:00
Michael Niedermayer
6a78425604
avcodec/ffv1dec: Fix AC_GOLOMB_RICE min size check
...
Found-by: mkver
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f7d510b33f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-22 15:48:06 +02:00
Michael Niedermayer
288ef1939f
avcodec/ffv1dec: consider run increase in minimal golomb frame size
...
Fixes: Timeout
Fixes: 49160/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5672826144686080
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 15785e044e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-20 18:24:47 +02:00
Michael Niedermayer
cd894807fe
tools/target_dec_fuzzer: Adjust threshold for MMVIDEO
...
Fixes: Timeout
Fixes: 49003/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MMVIDEO_fuzzer-5550368423018496
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 >
(cherry picked from commit 3592b05c84
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-20 18:24:47 +02:00
Michael Niedermayer
22878e8177
RELEASE_NOTES: Based on the version from 5.0
...
Name suggested by Leo Izen and Andreas Rheinhardt
LTS text suggested by Martijn van Beurden <mvanb1@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-20 18:24:16 +02:00
Timo Rothenpieler
d6a1e5980b
avutil/hwcontext_d3d11va: fix texture_infos writes on non-fixed-size pools
2022-07-18 02:10:41 +02:00
Marton Balint
83feded492
avdevice/avdevice: fix return value of avdevice_list_devices()
...
According to API docs avdevice_list_devices(), avdevice_list_input_sources()
and avdevice_list_input_sinks() should return the number of autodetected
devices on success. This is redundant with AVDeviceInfoList->nb_devices so it
was not noticed earlier that none of the underlying device list functions work
like that.
Let's fix it in generic code to make it in line with the API docs.
Fixes ticket #9820 .
Signed-off-by: Marton Balint <cus@passwd.hu >
(cherry picked from commit 64f04df379
)
2022-07-17 22:12:31 +02:00
Michael Niedermayer
2720715dab
avcodec/lagarith: Check dst/src in zero run code
...
Fixes: out of array access
Fixes: 48799/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-4764457825337344
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 >
(cherry picked from commit 9450f75974
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-16 17:08:26 +02:00
Michael Niedermayer
e04cb59ecc
Update for 5.1
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-16 17:08:26 +02:00
Gyan Doshi
b21d387d6f
ffmpeg: add option -isync
...
This is a per-file input option that adjusts an input's timestamps
with reference to another input, so that emitted packet timestamps
account for the difference between the start times of the two inputs.
Typical use case is to sync two or more live inputs such as from capture
devices. Both the target and reference input source timestamps should be
based on the same clock source.
If either input lacks starting timestamps, then no sync adjustment is made.
2022-07-14 15:49:10 +05:30
Michael Niedermayer
6f1b144358
Bump Versions for 5.1 branch
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-13 00:27:37 +02:00
Michael Niedermayer
3421476eb5
doc/APIchanges: Add 5.1 branch cutpoint
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-13 00:04:15 +02:00
Michael Niedermayer
510cd7d11b
doc/APIchanges: Fill in missing things
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 23:58:55 +02:00
Michael Niedermayer
eafe641d13
doc/APIchanges: Extend hash which has become ambiguous
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 23:58:31 +02:00
Michael Niedermayer
f7dd408d64
avcodec/h264dec: Skip late SEI
...
Fixes: Race condition
Fixes: clusterfuzz-testcase-minimized-mediasource_MP2T_AVC_pipeline_integration_fuzzer-6282675434094592
Found-by: google ClusterFuzz
Tested-by: Dan Sanders <sandersd@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
1537f40516
avcodec/sbrdsp_fixed: Fix integer overflows in sbr_qmf_deint_neg_c()
...
Fixes: signed integer overflow: 2147483645 + 16 cannot be represented in type 'int'
Fixes: 46993/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-4759025234870272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
4f9ee4bf43
avcodec/pixlet: consider minimum plane header in the minimal packet size
...
Fixes: Timeout
Fixes: 46956/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PIXLET_fuzzer-5698161106092032
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
dd6040675e
avfilter/vf_signature: Fix integer overflow in filter_frame()
...
Fixes: CID1403233
The second of the 2 changes may be unneeded but will help coverity
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
73c0fd27c5
avformat/rtsp: break on unknown protocols
...
This function needs more cleanup and it lacks error handling
Fixes: use of uninitialized memory
Fixes: CID700776
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
9c5250a561
avcodec/hevcdsp_template: stay within tables in sao_band_filter()
...
Fixes: out of array read
Fixes: 47875/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5719393113341952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
a5625fecd7
tools/target_dec_fuzzer: adjust threshold for flic
...
Fixes: Timeout
Fixes: 48017/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FLIC_fuzzer-5920256150863872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
f20295cd81
tools/target_dec_fuzzer: Adjust threshold for AASC
...
Fixes: Timeout
Fixes: 47919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AASC_fuzzer-5176435830030336
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
75f3d1b822
avcodec/tiff: Check pixel format types for dng
...
Fixes: out of array access
Fixes: 48271/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-6149705769287680
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
675e18e0fb
tools/target_dec_fuzzer: adjust threshold for cinepak
...
Fixes: Timeout
Fixes: 48158/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5986526573494272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
e690d4edf5
avcodec/qpeldsp: copy less for the mc0x cases
...
Fixes: out of array access
Fixes: 47936/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5745039940124672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
db31b3ea86
avformat/aaxdec: Check for empty segments
...
Fixes: Timeout
Fixes: 48154/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5149094353436672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
78b95530f0
avcodec/ffv1dec: Check for min packet size
...
Fixes: Timeout
Fixes: 48619/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5793597923917824
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
ba0c3d1db4
avformat/avienc: Check video dimensions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
b4431399ec
avcodec/ffv1dec: Limit golomb rice coded slices to width 8M
...
This limit is possibly not reachable due to other restrictions on buffers but
the decoder run table is too small beyond this, so explicitly check for it.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
248d981071
tools/target_dec_fuzzer: Adjust threshold for LOCO
...
Fixes: Timeout
Fixes: 48584/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LOCO_fuzzer-5741269015461888
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
6003fe6344
tools/target_dec_fuzzer: Adjust threshold for ylc
...
Fixes: timeout
Fixes: 48523/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_YLC_fuzzer-5779666425741312
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
35ea9590ff
tools/target_dec_fuzzer: Adjust threshold for WCMV
...
Fixes: Timeout
Fixes: 48377/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5053331682230272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
5bfa59b2de
tools/target_dec_fuzzer: Adjust threshold for CDTOONS
...
Fixes: Timeout
Fixes: 48730/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDTOONS_fuzzer-5124342899408896
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
0740641e93
avformat/iff: simplify duration calculation
...
Fixes: signed integer overflow: 315680096256 * 134215943 cannot be represented in type 'long long'
Fixes: 48713/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-5886272312311808
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
bb6679a58b
tools/target_dec_fuzzer: Adjust threshold for MVC2
...
Fixes: Timeout
Fixes: 48689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVC2_fuzzer-6436301427048448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
2ebd2a6eb5
tools/target_dec_fuzzer: Adjust threshold for CFHD
...
Fixes: Timeout
Fixes: 46504/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-6376835606249472
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
d98d5a436a
avcodec/wnv1: Check for width =1
...
The decoder only outputs pixels for width >1 images, fail early
Fixes: Timeout
Fixes: 48298/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WNV1_fuzzer-6198626319204352
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
eee7364c90
avcodec/ffv1dec_template: fix indention
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
Michael Niedermayer
21938ce739
tools/target_dec_fuzzer: Adjust threshold for ANM
...
Fixes: Timeout
Fixes: 48923/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ANM_fuzzer-6391662321991680
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-12 21:55:22 +02:00
ShuangxiLi
046b05082d
avformat/mov: fix possible crash in cenc_scheme_decrypt
...
Data does not have to be decrypted in 16-byte blocks for AES-CTR mode, so
existing buggy code can be hugely simplified.
Fixes ticket #9829 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-12 18:48:54 +02:00
George Floarea
9222965fdd
avfilter/vf_xfade: fix zx and zy comparison for slide*
...
This resulted in the wrong column/row being chosen.
This can be seen best when using xfade on streams with transparency.
For example: in case of a slideleft transition, the first column from
the first input will overwrite the first column of the second stream
throught the transition.
2022-07-12 16:32:30 +02:00
Hubert Mazur
eb7ab3928f
lavc/aarch64: Hook up the existing ff_pix_abs16_neon to the sad[0] function pointer
...
Signed-off-by: Hubert Mazur <hum@semihalf.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-07-11 23:58:28 +03:00
Marton Balint
846488cca8
avfilter/vf_zscale: enable AVX512 zimg functions
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-10 22:35:20 +02:00
Marton Balint
a6f0e641bc
avfilter/vf_zscale: simplify and fix slice_params calculations
...
Do not insist on a fixed slice height, because that can still cause overflows
in corner cases as described in this comment:
https://github.com/sekrit-twc/zimg/issues/177#issuecomment-1157734233
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-10 22:35:20 +02:00