Commit 119e85bf authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1284: Assert in ic_bwe_enc_specMapping_ivas_fx of BASOP...

Fix for 3GPP issue 1284: Assert in ic_bwe_enc_specMapping_ivas_fx of BASOP encoder with OMASA LTV input coded at 24.4 kbps

Link #1284
parent a3ddf608
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -219,8 +219,11 @@ static Word16 ic_bwe_enc_specMapping_ivas_fx(

    u_fx = extract_l( *specMapping_fx );

    tmp = mult( b_fx, b_fx );  // b_e  + b_e;
    tmp1 = mult( a_fx, c_fx ); // a_e + c_e + 2

    /*only possible saturation is -32768 and -32768 to avoid crash in that case mult_sat is used instead of mult*/

    tmp = mult_sat( b_fx, b_fx );  // b_e  + b_e;
    tmp1 = mult_sat( a_fx, c_fx ); // a_e + c_e + 2

    exp = BASOP_Util_Add_MantExp( tmp, add( b_e, b_e ), tmp1, add( a_e, add( c_e, 2 ) ), &temp_fx ); /* Q15-exp */
    test();