From 399425e7fc824b865ecbe8900981ecde7e880b0a Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 2 Jun 2025 09:29:55 +0200 Subject: [PATCH] port FIX_970_USAN_IN_NELP_SEED --- lib_com/nelp.c | 4 ++++ lib_com/options.h | 1 + 2 files changed, 5 insertions(+) diff --git a/lib_com/nelp.c b/lib_com/nelp.c index 887f412c3..e7a86ee32 100644 --- a/lib_com/nelp.c +++ b/lib_com/nelp.c @@ -121,7 +121,11 @@ void generate_nelp_excitation( for ( j = 0; j < len; j++ ) { +#ifdef FIX_970_USAN_IN_NELP_SEED + tmp[j] = ( ( *seed ) = (int16_t) ( 521 * ( *seed ) + 259 ) ) / PCM16_TO_FLT_FAC; +#else tmp[j] = ( ( *seed ) = 521 * ( *seed ) + 259 ) / PCM16_TO_FLT_FAC; +#endif tmp1[j] = ABSVAL( tmp[j] ); I[j] = j; } diff --git a/lib_com/options.h b/lib_com/options.h index eeecc2ef8..ffb615f09 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -210,6 +210,7 @@ #define FIX_1001_ARI_HM_OVERFLOW /* FhG: fix for undef behaviour in in the harmonic TCX model arithmetic coder */ #define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */ #define NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS /* Nokia: fix USAN error caused by non-setting of correctly the number of MASA directions in DTX */ +#define FIX_970_USAN_IN_NELP_SEED /* #################### End BASOP porting switches ############################ */ -- GitLab