Commit 53cb969d authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '890-possible-crash-saturation-in-itf_detect_fx' into 'main'

Resolve "Possible crash (saturation) in ITF_Detect_fx"

Closes #890

See merge request !599
parents ee97b729 1abdee88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -578,7 +578,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();
        }