mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/ra144dec: Fix runtime error: left shift of negative value -17
Fixes: 1830/clusterfuzz-testcase-minimized-5828293733384192
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 53c0c637d3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
780c360e76
commit
385642f8c8
@ -113,7 +113,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
do_output_subblock(ractx, block_coefs[i], refl_rms[i], &gb);
|
do_output_subblock(ractx, block_coefs[i], refl_rms[i], &gb);
|
||||||
|
|
||||||
for (j=0; j < BLOCKSIZE; j++)
|
for (j=0; j < BLOCKSIZE; j++)
|
||||||
*samples++ = av_clip_int16(ractx->curr_sblock[j + 10] << 2);
|
*samples++ = av_clip_int16(ractx->curr_sblock[j + 10] * (1 << 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
ractx->old_energy = energy;
|
ractx->old_energy = energy;
|
||||||
|
Loading…
Reference in New Issue
Block a user