Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-22 22:43:01 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-22 22:43:39 +0300
commit0ce7cf0c86a2744ddfe21cb0983ff572ed07ab69 (patch)
tree4f3cce3cfb2cae961cd3ddd6eb4f603c6770e9c1 /libavcodec
parent64d0dad93c18a517e92d152fdf7cbf92f1cf0a68 (diff)
avcodec/takdec: Fix runtime error: left shift of negative value -360
Fixes: 1739/clusterfuzz-testcase-minimized-5399237707694080 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')
-rw-r--r--libavcodec/takdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 081b2f203b..78e82a9d41 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -653,7 +653,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
s->residues[i ] * s->filter[0];
}
- v = (av_clip_intp2(v >> 10, 13) << dshift) - *p1;
+ v = av_clip_intp2(v >> 10, 13) * (1 << dshift) - *p1;
*p1++ = v;
}