diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-06 17:25:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-09 13:40:18 +0200 |
commit | 6fa967810d8fa5b9101b79acdb1722529f75c4b7 (patch) | |
tree | 9b2c03de7a7dd95b0d8c844d838d5a90f06b414c /libavcodec/x86/opusdsp_init.c | |
parent | ebe78e3ef0b07dbefe90c8709aef9611183c08ed (diff) | |
download | ffmpeg-6fa967810d8fa5b9101b79acdb1722529f75c4b7.tar.gz |
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>
Diffstat (limited to 'libavcodec/x86/opusdsp_init.c')
0 files changed, 0 insertions, 0 deletions