1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/tests/checkasm
Andreas Rheinhardt 6fa967810d tests/checkasm/svq1enc: Use proper range for input
ssd_int8_vs_int16 is only called from encode_block()
in svq1enc.c; it calls it in stages: At stage 0,
the int16_t array contains the difference of two
uint16_t. At each of the following stages, the
int16_t array is filled by subtracting an int8_t from
the current stage's int16_t array. The maximum stage
is five, so the int16_t are in the range
(-255 - 5 * 127)..(255 + 5 * 128).

This commit modifies the checkasm test to only use
values from this range, fixing (undefined) integer overflow
in the test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-05-09 13:40:18 +02:00
..
aarch64
arm
riscv checkasm: Generalize crash handling 2024-01-11 14:48:53 +02:00
x86
.gitignore
aacencdsp.c avcodec/aacenc: Move initializing DSP out of aacenc.c 2024-03-02 02:54:11 +01:00
aacpsdsp.c
ac3dsp.c avcodec/ac3: Implement sum_square_butterfly_float for aarch64 NEON 2024-04-08 13:36:40 +03:00
af_afir.c checkasm: test for dcmul_add 2023-11-27 17:55:24 +02:00
alacdsp.c
audiodsp.c
av_tx.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
blockdsp.c checkasm/blockdsp: use smallest allowed aligned buffers for fill_block_tab tests 2024-05-08 21:13:23 -03:00
bswapdsp.c
checkasm.c checkasm/rv40dsp: add chroma_mc test 2024-05-03 18:00:53 +03:00
checkasm.h checkasm/rv40dsp: add chroma_mc test 2024-05-03 18:00:53 +03:00
exrdsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
fixed_dsp.c configure: Remove av_restrict 2024-03-15 12:51:15 +01:00
flacdsp.c checkasm/flacdsp: add LPC test 2023-11-18 22:01:59 +02:00
float_dsp.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
fmtconvert.c
g722dsp.c
h264chroma.c
h264dsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
h264pred.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
h264qpel.c
hevc_add_res.c
hevc_deblock.c checkasm/hevc_deblock: Initialize buffer 2024-03-08 01:01:49 +01:00
hevc_idct.c tests/checkasm/hevc_*: Avoid using declare_func_emms where possible 2023-09-04 11:04:45 +02:00
hevc_pel.c checkasm: hevc_pel: Use checkasm_check for printing failing output 2024-03-14 13:42:39 +01:00
hevc_sao.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
huffyuvdsp.c checkasm/huffyuvdsp: test for add_hfyu_left_pred_bgr32 2023-11-15 16:51:07 +02:00
idctdsp.c avcodec/idctdsp: Avoid inclusion of avcodec.h 2023-09-11 00:26:34 +02:00
jpeg2000dsp.c
llauddsp.c checkasm: add lossless audio DSP 2023-11-16 16:53:44 +02:00
llviddsp.c
llviddspenc.c tests/checkasm/llvidencdsp: Don't use declare_func_emms 2023-09-04 11:04:45 +02:00
lpc.c
Makefile checkasm/rv40dsp: add chroma_mc test 2024-05-03 18:00:53 +03:00
motion.c checkasm/motion: Don't allocate AVCodecContext 2023-09-28 00:17:47 +02:00
opusdsp.c opusdsp: add ability to modify deemphasis constant 2024-04-27 11:12:07 +02:00
pixblockdsp.c configure: Remove av_restrict 2024-03-15 12:51:15 +01:00
rv34dsp.c checkasm/rv34dsp: add rv34_idct_dc_add test 2024-02-17 14:33:35 +02:00
rv40dsp.c checkasm/rv40dsp: add chroma_mc test 2024-05-03 18:00:53 +03:00
sbrdsp.c checkasm: test the noise case of sbrdsp.hf_apply_noise 2023-11-13 18:34:29 +02:00
svq1enc.c tests/checkasm/svq1enc: Use proper range for input 2024-05-09 13:40:18 +02:00
sw_gbrp.c
sw_rgb.c
sw_scale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
synth_filter.c
takdsp.c avcodec/takdsp: fix const correctness 2023-12-22 09:28:04 -03:00
utvideodsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
v210dec.c
v210enc.c
vc1dsp.c checkasm: vc1dsp: Align buffers sufficiently for the mspel tests 2024-04-30 23:13:47 +03:00
vf_blend.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
vf_bwdif.c avfilter/bwdif: Add proper BWDIFDSPContext 2023-09-28 00:17:47 +02:00
vf_colorspace.c
vf_convolution.c
vf_eq.c
vf_gblur.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
vf_hflip.c
vf_nlmeans.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
vf_threshold.c
videodsp.c
vorbisdsp.c configure: Remove av_restrict 2024-03-15 12:51:15 +01:00
vp8dsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
vp9dsp.c avutil/internal: Don't auto-include emms.h 2023-09-04 11:04:45 +02:00
vvc_mc.c avcodec/vvc: Rename vvc_?foo->foo 2024-04-04 16:45:00 +02:00