Commit 8e8bd5d1 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1210: Assertion in gain_enc_mless_ivas_fx in BASOP encoder...

Fix for 3GPP issue 1210: Assertion in gain_enc_mless_ivas_fx in BASOP encoder for MASA LTV input with DTX enabled

Link #1210
parent 5474633d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -505,6 +505,16 @@ void gain_dec_mless_fx(

        L_tmp = Dot_product12( code_fx, code_fx, L_SUBFR, &expg ); /*Q31 - expg*/
        expg = sub( expg, 18 + 6 );                                /* exp: -18 (code in Q9), -6 (/L_SUBFR) */

        // To avoid crash in case code value is 0
        IF( EQ_16( BASOP_Util_Cmp_Mant32Exp( L_tmp, expg, 21474836, 0 ), -1 ) )
        {
            L_tmp = 21474836;
            expg = 0;
            move32();
            move16();
        }

        expg2 = expg;
        move16();
        L_tmp1 = L_tmp; /* sets to 'L_tmp' in 1 clock */