diff --git a/lib_com/nelp.c b/lib_com/nelp.c index 3b27ab756500216bac0988819a0bb7cba057b528..b21740f5ca0a8a833b6ab1680f2f41cca5bfa707 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 5cfb7d35c9e92d020798021cdc1b99c05c63e2c9..3fb916669ed6333804414c465ab87055c61bd9ea 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -159,6 +159,7 @@ #define FIX_1033_MEMORY_LEAK_OMASA /* Nokia / Orange: issue #1033: Memory leak in OMASA to BINAURAL with HRTF with bitrate switching */ #define FIX_1038_OFFSET_TO_NULL_PTR_IN_EVS_TCX_BFI /* FhG: move setting of pointers for parameter decoding so they are skipped in lost frames when they are not needed */ #define FIX_1043_JBM_MD_BUFFER /* VA: issue 1043: JBM MD handle allocation is avoided in non-JBM EXT operations */ +#define FIX_970_USAN_IN_NELP_SEED #define FIX_1044_ISM_REND_MEMORY /* VA: issue 1044: Lower the memory of the ISM renderer handle. */