Commit 1abdee88 authored by vaillancour's avatar vaillancour
Browse files

possible fix to prevent saturation crash

parent a7716790
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -573,7 +573,7 @@ Word16 ITF_Detect_fx(
        assert( n < (Word16) ( sizeof( tmpbuf ) / sizeof( Word16 ) ) );
        FOR( i = 0; i < n; i++ )
        {
            tmpbuf[i] = round_fx( L_shl( pSpectrum[iStartLine + i - IGF_START_MN], shift ) );
            tmpbuf[i] = round_fx_sat( L_shl_sat( pSpectrum[iStartLine + i - IGF_START_MN], shift ) );
            move16();
        }