Commit 525045c2 authored by Manuel Jander's avatar Manuel Jander
Browse files

Fix EVS BE regression

parent 72b22031
Loading
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -303,8 +303,17 @@ void transf_cdbk_enc_fx(

#ifdef NONBE_FIX_ISSUE_2518_TRANSENC_SAT_FIX
    Word16 q_x_tran;
    IF( EQ_16( st_fx->element_mode, EVS_MONO ) )
    {
        q_x_tran = Q_AVQ_OUT_DEC;
        move16();
        Copy_Scale_sig( x_norm, x_tran, Nsv * WIDTH_BAND, q_x_tran );
    }
    ELSE
    {
        q_x_tran = s_min( Q_AVQ_OUT_DEC, norm_arr( x_norm, Nsv * WIDTH_BAND ) );
        Copy_Scale_sig_nosat( x_norm, x_tran, Nsv * WIDTH_BAND, q_x_tran );
    }
#else
    FOR( i = 0; i < Nsv * WIDTH_BAND; i++ )
    {