mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
qdm2: fix signed multiplication overflow
This code relies on the result wrapping as for unsigned values, and the sign is not used. Thus an unsigned type is proper here. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
5e87222fd1
commit
c682514a8f
@ -90,7 +90,7 @@ static av_cold void rnd_table_init(void) {
|
||||
|
||||
static av_cold void init_noise_samples(void) {
|
||||
int i;
|
||||
int random_seed = 0;
|
||||
unsigned random_seed = 0;
|
||||
float delta = 1.0 / 16384.0;
|
||||
for (i = 0; i < 128;i++) {
|
||||
random_seed = random_seed * 214013 + 2531011;
|
||||
|
Loading…
Reference in New Issue
Block a user