From 291e9f96689f5a326c319a8c89b927796b7a1b48 Mon Sep 17 00:00:00 2001 From: Jan Kiene Date: Wed, 25 Sep 2024 12:10:33 +0200 Subject: [PATCH] use saturated operator in GetF0 --- lib_dec/TonalComponentDetection_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/TonalComponentDetection_fx.c b/lib_dec/TonalComponentDetection_fx.c index 2c182f6c8..1c84c1d75 100644 --- a/lib_dec/TonalComponentDetection_fx.c +++ b/lib_dec/TonalComponentDetection_fx.c @@ -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(); -- GitLab