mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avcodec/mlpdec: Fix runtime error: left shift of negative value -22
Fixes: 1355/clusterfuzz-testcase-minimized-6662205472768000 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c535436cbeeab89be64e9f3fd652bc736f2f3245) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
645b36ce64
commit
3585986a00
@ -264,7 +264,7 @@ static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,
|
||||
result = (result << lsb_bits) + get_bits(gbp, lsb_bits);
|
||||
|
||||
result += cp->sign_huff_offset;
|
||||
result <<= quant_step_size;
|
||||
result *= 1 << quant_step_size;
|
||||
|
||||
m->sample_buffer[pos + s->blockpos][channel] = result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user