Commit 1c1fb314 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

consider evs/ivas path : stay bitexact for evs

parent 68e90fdf
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@
#define FIX_BASOP_2531_MCT_CP_BITRATE                   /* FhG: BASOP issue 2531: Fix MCT cp_bitrate calculation; affects bitrate switching only */
#define FIX_BASOP_2541_OMASA_ENC_FIXES                  /* Nokia: BASOP issue 2541: Fix function ivas_encode_masaism_metadata_fx */
#define FIX_BASOP_2545_FIX_LTV_REGRESSION_2529          /* Nokia: BASOP issue 2545: Fix LTV regression caused by issue 2529 fix */
#define FIX_BASOP_2548_ProcessIGF_fx_PREDICTIONGAIN
#define FIX_BASOP_2548_ProcessIGF_fx_PREDICTIONGAIN     /* FhG: fixes obvious bug for IVAS path. For EVS path, issue is still not resolved */

/* ##################### End NON-BE switches ########################### */

+9 −2
Original line number Diff line number Diff line
@@ -3452,9 +3452,16 @@ void ProcessIGF_fx(

    test();
#ifdef FIX_BASOP_2548_ProcessIGF_fx_PREDICTIONGAIN
    IF( EQ_16( st->element_mode, EVS_MONO ) )
    {
        tns_predictionGain = L_deposit_l( hIGFEnc->tns_predictionGain );
    }
    ELSE
    {
        tns_predictionGain = L_deposit_h( hIGFEnc->tns_predictionGain );
    }
#else
    tns_predictionGain = L_deposit_l( hIGFEnc->tns_predictionGain ); // todo: mul, 2026-03-12: check, why this is in Q23
    tns_predictionGain = L_deposit_l( hIGFEnc->tns_predictionGain );
#endif
    IF( LT_32( tns_predictionGain, ONE_POINT_ONE_FIVE_Q23 ) && LT_16( predictionGain, ONE_POINT_ONE_FIVE_Q7 ) )
    {