Commit a6d1f0b2 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 863 crash

[x] Corrected Q factor in fec_ecu_pitch_ivas_fx
parent f61fca33
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3718,8 +3718,8 @@ static void fec_ecu_pitch_ivas_fx(
        accCisqrt = Isqrt( accC ); /* Q31 - 3 +  tmpQLP*/


        Ryytmp = L_shl( Mult_32_32( accA, accCisqrt ), Q15 );            /*Q   6 -2*tmpQLP +  Q31 - 3 +  tmpQLP -16 -3 +tmpQLP      = Q15*/
        Ryy = extract_h( L_shl( Mult_32_32( Ryytmp, accBisqrt ), 16 ) ); /*Q15 + Q31 - 3 +  tmpQLP -15 + 3- tmpQLP = Q31*/
        Ryytmp = L_shl( Mult_32_32( accA, accCisqrt ), sub( Q12, tmpQLP ) );             /*Q   6 -2*tmpQLP +  Q31 - 3 +  tmpQLP -16 -3 +tmpQLP      = Q15*/
        Ryy = extract_h( L_shl( Mult_32_32( Ryytmp, accBisqrt ), sub( Q19, tmpQLP ) ) ); /*Q15 + Q31 - 3 +  tmpQLP -15 + 3- tmpQLP = Q31*/

        IF( GT_16( Ryy, *min_corr_fx ) )
        {