1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00
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
..
2024-01-11 14:48:53 +02:00
2023-11-27 17:55:24 +02:00
2024-03-15 12:51:15 +01:00
2023-11-18 22:01:59 +02:00
2024-05-03 18:00:53 +03:00
2024-03-15 12:51:15 +01:00
2024-05-03 18:00:53 +03:00
2023-12-22 09:28:04 -03:00
2024-03-15 12:51:15 +01:00
2024-04-04 16:45:00 +02:00