Commit 35a5af1d authored by vaillancour's avatar vaillancour
Browse files

Fixes for 48 stv48c_dtx_sw_164_1280_48kHz.b10.COD

parent ee9cd394
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -763,8 +763,13 @@ static void scale_st_swb(
        temp = mult_r(agc_fac_para_fx, gain_fx);/*15 +14 -15 =14 */
        gain_fx = add(temp, g0_fx); /* in Q14 */
        L_temp = L_mult(gain_fx, sig_out_fx[i]);/*14 + Q_bwe_exc-1 +1 = 14 + Q_bwe_exc */
#ifdef BASOP_NOGLOB
        L_temp = L_shl_sat(L_temp, 1); /*14 + Q_bwe_exc +1 */
        sig_out_fx[i] = round_fx_sat(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */
#else
        L_temp = L_shl(L_temp, 1); /*14 + Q_bwe_exc +1 */
        sig_out_fx[i] = round_fx(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */
#endif
    }
    *gain_prec_fx =gain_fx;
    move16();