Martin Storsjö
237730f0e0
checkasm: motion: Make the benchmarks more stable
...
Don't use the last random offset, but a static one.
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-07-16 17:25:35 +03:00
Martin Storsjö
02e7853fd9
libavcodec: aarch64: Don't clobber v8 in the h%4 case in ff_pix_abs16_xy2_neon
...
Checkasm doesn't currently test this codepath.
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-07-16 17:25:11 +03:00
Michael Niedermayer
9450f75974
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 >
2022-07-14 20:10:59 +02:00
Gyan Doshi
882aac99d2
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:48:24 +05:30
Hubert Mazur
01e190dc99
lavc/aarch64: Add pix_abs16_x2 neon implementation
...
Provide neon implementation for pix_abs16_x2 function.
Performance tests of implementation are below.
- pix_abs_0_1_c: 283.5
- pix_abs_0_1_neon: 39.0
Benchmarks and tests run with checkasm tool on AWS Graviton 3.
Signed-off-by: Hubert Mazur <hum@semihalf.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-07-13 23:25:22 +03:00
Michael Niedermayer
a0994440e8
RELEASE: update after 5.1 branch
2022-07-13 00:31:42 +02:00
Michael Niedermayer
5cd041f463
Changelog: Add version <next>
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-07-13 00:29:57 +02:00
Michael Niedermayer
fd26b07e8b
Bump versions after 5.1 branch
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n5.2-dev
2022-07-13 00:29:05 +02:00
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
Marton Balint
68fdc9de84
avfilter/vf_zscale: remove some unneeded initializations
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-10 22:35:20 +02:00
Timo Rothenpieler
be983d2354
configure: add missing deps for chromakey_cuda filter
...
Not sure how those went missing at some point during the review process,
but it went unnoticed since all my test machines obviously have the
deps.
2022-07-10 17:42:58 +02:00
Mohamed Khaled Mohamed
b1648150b2
avfilter: add chromakey_cuda filter
...
GSoC'22
libavfilter/vf_chromakey_cuda.cu:the CUDA kernel for the filter
libavfilter/vf_chromakey_cuda.c: the C side that calls the kernel and gets user input
libavfilter/allfilters.c: added the filter to it
libavfilter/Makefile: added the filter to it
cuda/cuda_runtime.h: added two math CUDA functions that are used in the filter
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2022-07-10 17:20:15 +02:00
Andreas Rheinhardt
538cbaf18e
fate/pcm: Add pcm_dvd transcode tests
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-07-10 16:58:58 +02:00
Andreas Rheinhardt
d0b050562a
avcodec/pcm-dvdenc: Fix encoding 24bit samples
...
The earlier code ignored the lower 16 bits and instead used
the highest 8 bits twice.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-07-10 16:58:43 +02:00
Andreas Rheinhardt
7259eef711
avcodec/pcm-dvdenc: Remove unused extra_sample(s|_count)
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-07-10 16:58:07 +02:00
dvhh
c6fdbe26ef
configure: fix SDL2 version check for pkg_config fallback
...
pkg_config fallback for SDL2 use 2.1.0 as max (excluded) version
where the pkg_config specify 3.0.0
Correcting fallback version to be in line with the pkg_config version
Signed-off-by: dvhh <dvhh@yahoo.com >
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-09 21:33:38 +02:00
Wenbin Chen
bd7dae7daf
avcodec/mpegvideo_enc: Unify the code style
...
Change whitespace and add newline to unify the code style.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Signed-off-by: Marton Balint <cus@passwd.hu >
2022-07-09 21:05:02 +02:00