mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
avcodec/takdec: Fix runtime error: left shift of negative value -42
Fixes: 1635/clusterfuzz-testcase-minimized-4992749856096256 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 99c4c76cfbc4ae56dc8c37f5fab02f88f6b2cb48) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b7b28b6aad
commit
f34dc82d56
@ -904,7 +904,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
for (chan = 0; chan < avctx->channels; chan++) {
|
for (chan = 0; chan < avctx->channels; chan++) {
|
||||||
int32_t *samples = (int32_t *)frame->extended_data[chan];
|
int32_t *samples = (int32_t *)frame->extended_data[chan];
|
||||||
for (i = 0; i < s->nb_samples; i++)
|
for (i = 0; i < s->nb_samples; i++)
|
||||||
samples[i] <<= 8;
|
samples[i] *= 1 << 8;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user