diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-19 12:14:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-19 13:14:12 +0200 |
commit | 2ccd2c9003c77aee8ffb5f4f43863e35bdf0e4b6 (patch) | |
tree | a07f9e70ee70d6b502a593d06b5d0388bd3ca38b /libavcodec/aacsbr_fixed.c | |
parent | 55b56a8d6a061db7dff730341f062086f65d4bd4 (diff) |
avcodec/aacsbr_fixed: Fix multiple runtime error: left shift of negative value -407
Fixes: 1674/clusterfuzz-testcase-minimized-6092531563495424
Fixes: 1686/clusterfuzz-testcase-minimized-6282691643179008
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacsbr_fixed.c')
-rw-r--r-- | libavcodec/aacsbr_fixed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/aacsbr_fixed.c b/libavcodec/aacsbr_fixed.c index b26314a7eb..b15a963ebf 100644 --- a/libavcodec/aacsbr_fixed.c +++ b/libavcodec/aacsbr_fixed.c @@ -289,7 +289,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp, if (shift >= 3) alpha0[k][0] = 0x7fffffff; else { - a00.mant <<= 1; + a00.mant *= 2; shift = 2-shift; if (shift == 0) alpha0[k][0] = a00.mant; @@ -303,7 +303,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp, if (shift >= 3) alpha0[k][1] = 0x7fffffff; else { - a01.mant <<= 1; + a01.mant *= 2; shift = 2-shift; if (shift == 0) alpha0[k][1] = a01.mant; @@ -316,7 +316,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp, if (shift >= 3) alpha1[k][0] = 0x7fffffff; else { - a10.mant <<= 1; + a10.mant *= 2; shift = 2-shift; if (shift == 0) alpha1[k][0] = a10.mant; @@ -330,7 +330,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp, if (shift >= 3) alpha1[k][1] = 0x7fffffff; else { - a11.mant <<= 1; + a11.mant *= 2; shift = 2-shift; if (shift == 0) alpha1[k][1] = a11.mant; |