Commit 81f1262f authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1002: Decoder crash for MC51 at 128 kbps with FER in...

Fix for 3GPP issue 1002: Decoder crash for MC51 at 128 kbps with FER in RefineThresholdsUsingPitch()
parent 4e6c6d71
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -808,7 +808,7 @@ static void CorrectF0(
            IF( LE_16( iMult, 3 ) )
            {
                /* Use iMostCommonDiff, because the lowest pHarmonicIndexes[i] (which is equal to iMult) may not correspond to the new F0, but to it's multiple */
                F0 = round_fx( L_shl( L_mult( iMostCommonDiff /*Q0*/, F0 /*Q10*/ ), 15 ) ); /*Q10*/
                F0 = round_fx_sat( L_shl_sat( L_mult( iMostCommonDiff /*Q0*/, F0 /*Q10*/ ), 15 ) ); /*Q10*/
            }
            ELSE
            {