diff options
Diffstat (limited to 'decoder/ixheaacd_stereo.c')
-rw-r--r-- | decoder/ixheaacd_stereo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/decoder/ixheaacd_stereo.c b/decoder/ixheaacd_stereo.c index 2f880f6..586f4c2 100644 --- a/decoder/ixheaacd_stereo.c +++ b/decoder/ixheaacd_stereo.c @@ -202,8 +202,14 @@ VOID ixheaacd_intensity_stereo_process( shift_val = shift_val + scf_exp; if (shift_val < 0) { + if (shift_val < -31) { + shift_val = -31; + } temp = ixheaac_shl32_sat(temp, -shift_val); } else { + if (shift_val > 31) { + shift_val = 31; + } temp = ixheaac_shr32(temp, shift_val); } *r_spec++ = temp; |