summaryrefslogtreecommitdiff
path: root/libavcodec/takdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-21 02:46:55 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-21 02:56:47 +0200
commitd66193252b4067144f11211f8f3e1d5a50146235 (patch)
treedc9432c63676ba0d403bf5d05a4b41aab19d46df /libavcodec/takdec.c
parent1d04fc94e1021b70e542dc01a48b8398c6fc6325 (diff)
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>
Diffstat (limited to 'libavcodec/takdec.c')
-rw-r--r--libavcodec/takdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 31d703135a..9a13b8efbe 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];
}
}