diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-17 00:44:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-17 20:35:20 +0200 |
commit | e79851f2e7cdd4f8c418bddf8599c6dd383eb50d (patch) | |
tree | bc2cf443fcefd917a5ed74db1b0566a65128bc15 | |
parent | dcbebc931eb94b894478b1fa604c420f98e39132 (diff) | |
download | ffmpeg-e79851f2e7cdd4f8c418bddf8599c6dd383eb50d.tar.gz |
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>
-rw-r--r-- | libavcodec/takdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index dd50cc7669..43b3c92077 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -893,7 +893,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data, for (chan = 0; chan < avctx->channels; chan++) { int32_t *samples = (int32_t *)frame->extended_data[chan]; for (i = 0; i < s->nb_samples; i++) - samples[i] <<= 8; + samples[i] *= 1 << 8; } break; } |