Commit 27267f2c authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'add-saturation-in-tonal-dct-concealment' into 'main'

Fix for part of #885 - use saturated operator in tonal MDCT concealment

See merge request !613
parents d4fc334d 291e9f96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -565,7 +565,7 @@ static void GetF0(
        /**pF0 = nSamplesCore/tmpPitchLag;*/
        BASOP_Util_Divide_MantExp( nSamplesCore, 0, tmpPitchLag, -( 1 /*division by 2*/ + 4 /*accommodate accuracy-prevention-leftshift*/ ), pF0, &tmp ); /*pF0 is Q15*/
        move16();
        *pF0 = shr( *pF0, sub( 5, tmp ) ); /*Q10 without scalingfactor*/
        *pF0 = shr_sat( *pF0, sub( 5, tmp ) ); /*Q10 without scalingfactor*/
        move16();
        *pOrigF0 = *pF0; /*Q10*/
        move16();