Commit 5c5fca33 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fixes BASOP assert in 48kbps stereo decoding due to left shift of negative value

The assertion was happening because of not enough
headroom present for the calculation of win buffer,
by reducing the Q-factor of input buffer crash was resolved.
parent 19d7ac40
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ void IMDCT_flt(
#ifdef IVAS_FLOAT_FIXED
                    Word32 x_fx[L_MDCT_OVLP_MAX + L_FRAME_PLUS + L_MDCT_OVLP_MAX];
                    Word16 win_fx[810] = { 0 };
                    Word16 q_x = Q16, q_win, x_e_hdrm;
                    Word16 q_x = Q15, q_win, x_e_hdrm;
                    x_e_hdrm = sub(q_x, 15);
                    q_win = q_x + x_e_hdrm - 16;
                    for ( int k = 0; k < L_ola + L_win; k++ )