mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/g723_1dec: Fix LCG type
Fixes: 1567/clusterfuzz-testcase-minimized-5693653555085312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
69b83f5992
commit
f2c539d350
|
@ -488,7 +488,7 @@ static void residual_interp(int16_t *buf, int16_t *out, int lag,
|
||||||
(FRAME_LEN - lag) * sizeof(*out));
|
(FRAME_LEN - lag) * sizeof(*out));
|
||||||
} else { /* Unvoiced */
|
} else { /* Unvoiced */
|
||||||
for (i = 0; i < FRAME_LEN; i++) {
|
for (i = 0; i < FRAME_LEN; i++) {
|
||||||
*rseed = *rseed * 521 + 259;
|
*rseed = (int16_t)(*rseed * 521 + 259);
|
||||||
out[i] = gain * *rseed >> 15;
|
out[i] = gain * *rseed >> 15;
|
||||||
}
|
}
|
||||||
memset(buf, 0, (FRAME_LEN + PITCH_MAX) * sizeof(*buf));
|
memset(buf, 0, (FRAME_LEN + PITCH_MAX) * sizeof(*buf));
|
||||||
|
|
Loading…
Reference in New Issue