diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-07-23 16:52:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-07-26 00:11:54 +0200 |
commit | a930db5c829919511e15694dd03d1b9ded8a705e (patch) | |
tree | 9f2ebd58e32584176827fc542b9cfcf0caed0123 /libavcodec | |
parent | f10252e47d81ac043cd3a9e5d04e38f6e8ed4e26 (diff) | |
download | ffmpeg-a930db5c829919511e15694dd03d1b9ded8a705e.tar.gz |
avcodec/aacdec_fixed: fix: left shift of negative value -1
Fixes: 2699/clusterfuzz-testcase-minimized-5631303862976512
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 2dfb8c417891e0cc3670f8e0791ea0c7071314fe)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacdec_fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c index 0cac3bf4eb..ccc82057e1 100644 --- a/libavcodec/aacdec_fixed.c +++ b/libavcodec/aacdec_fixed.c @@ -430,7 +430,7 @@ static void apply_independent_coupling_fixed(AACContext *ac, else { for (i = 0; i < len; i++) { tmp = (int)(((int64_t)src[i] * c + (int64_t)0x1000000000) >> 37); - dest[i] += tmp << shift; + dest[i] += tmp * (1 << shift); } } } |