mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-20 07:48:15 +02:00
avcodec/ra144: Fix runtime error: signed integer overflow: 11184810 * 404 cannot be represented in type 'int'
Fixes: 1884/clusterfuzz-testcase-minimized-4637425835966464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4c472c52525fcab4c80cdbc98b4625d318c84fcb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
78603ff0f9
commit
37709a5f82
@ -1701,7 +1701,7 @@ void ff_subblock_synthesis(RA144Context *ractx, const int16_t *lpc_coefs,
|
||||
if (cba_idx) {
|
||||
cba_idx += BLOCKSIZE/2 - 1;
|
||||
ff_copy_and_dup(ractx->buffer_a, ractx->adapt_cb, cba_idx);
|
||||
m[0] = (ff_irms(&ractx->adsp, ractx->buffer_a) * gval) >> 12;
|
||||
m[0] = (ff_irms(&ractx->adsp, ractx->buffer_a) * (unsigned)gval) >> 12;
|
||||
} else {
|
||||
m[0] = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user