Commit 4d27ba59 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_1804_fix' into 'main'

Fix for 3GPP issue 1804: Encoder crash for Stereo at 16.4kbps in prep_tbe_exc_fx()

See merge request !1877
parents 9d277af8 4a5a01ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7077,7 +7077,7 @@ void prep_tbe_exc_fx(
        FOR( i = 0; i < L_subfr * HIBND_ACB_L_FAC; i++ )
        {
            L_tmp = L_mult( gain_code16, tmp_code_fx[i] );                                                  /* Q9 + Q_exc + 1*/
            L_tmp = L_shl( L_tmp, 5 );                                                                      /* Q9 + Q_exc + Q6*/
            L_tmp = L_shl_o( L_tmp, 5, &Overflow );                                                         /* Q9 + Q_exc + Q6*/
            L_tmp = L_mac_o( L_tmp, gain_pit_fx, bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC], &Overflow ); /*Q15+Q_exc */
            L_tmp = L_shl_o( L_tmp, 1, &Overflow ); /*16+Q_exc */                                           /* saturation can occur here */
            bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC] = round_fx_o( L_tmp, &Overflow );                  /*Q_exc */