Commit ba0c1470 authored by Arthur Tritthart's avatar Arthur Tritthart
Browse files

changed L_shl by L_shl_sat to solve issue 2592

parent ce3749b6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -473,7 +473,7 @@ static void GetF0(
        {
            Word16 tmp_32 = 0;
            Word32 F0_32 = BASOP_Util_Divide3232_Scale_newton( L_shl( nSamplesCore, Q16 ), tmpPitchLag, &tmp_32 );
            F0_32 = L_shl( F0_32, tmp_32 - Q16 );
            F0_32 = L_shl_sat( F0_32, tmp_32 - Q16 );  /* saturation needed to allow 0x40000000 << 1 */
            *pF0_32 = F0_32;
            move32();
            *pOrigF0_32 = *pF0_32; /*Q26*/