Commit b977e505 authored by Jan Kiene's avatar Jan Kiene
Browse files

use saturating add to fix crash

-equivalent spot in encoder code uses that too
-also remove two excessive tests()'s
parent 9ba3dbdb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1051,7 +1051,7 @@ void ivas_mcmasa_param_est_ana_fx(
                    cohPanCoh_e = tempCoh2_e;
                    move16();
                }
                cohPanCoh_fx = L_shl( cohPanCoh_fx, cohPanCoh_e ); /*Q31*/
                cohPanCoh_fx = L_shl_sat( cohPanCoh_fx, cohPanCoh_e ); /*Q31*/
                cohPanCoh_e = 0;
                move16();
                lsEnergyRelation_fx = BASOP_Util_Divide3232_Scale( lsEnergy_fx[i2], L_add( lsEnergy_fx[i1], EPSILON_FX ), &lsEnergyRelation_e );
+0 −2
Original line number Diff line number Diff line
@@ -1531,8 +1531,6 @@ static Word32 getRendInputDelayMasa(
    latency_ns = 0;
    move32();

    test();
    test();
    test();
    test();
    IF( ( EQ_32( inputMasa->base.inConfig, IVAS_AUDIO_CONFIG_MASA1 ) &&