mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avcodec/takdec: Fix runtime error: left shift of negative value -63
Fixes: 1713/clusterfuzz-testcase-minimized-5791887476654080 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1d04fc94e1
commit
d66193252b
@ -862,7 +862,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
|
||||
|
||||
if (s->sample_shift[chan] > 0)
|
||||
for (i = 0; i < s->nb_samples; i++)
|
||||
decoded[i] <<= s->sample_shift[chan];
|
||||
decoded[i] *= 1 << s->sample_shift[chan];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user