aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-21 02:46:55 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-16 01:05:27 +0200
commit20363bef602d2e9a4d19f88958aa24e0123d7ce2 (patch)
treea5d7a6853fe2f0d90bd875da32501eecdfe73d0f
parente1e7b75cbf8bbfec5fce545d6e2653c49ab1a47a (diff)
downloadffmpeg-20363bef602d2e9a4d19f88958aa24e0123d7ce2.tar.gz
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> (cherry picked from commit d66193252b4067144f11211f8f3e1d5a50146235) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/takdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index d69b1a9bfd..e90992cce3 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -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];
}
}