diff --git a/lib_com/options.h b/lib_com/options.h index a02843a918fd84142ccbe00ffdd32f7ae1a13f3c..b776da9f62a11cdb4db84e86e642683fc909732a 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -180,11 +180,10 @@ #define NONBE_FIX_1058_DECODER_ERROR_WITH_REVERB_ROOM /* FhG: issue 1058: do not initialize EFAP when IntSetup is HOA3 */ #ifdef NONBE_FIX_1058_DECODER_ERROR_WITH_REVERB_ROOM #endif - #define USE_NEW_HRTF_BINARY_FILE_FORMAT /* Orange: to activate when decided to change the hrtf binary file format */ #define FIX_WARNING_RENDER_CONFIG /* Orange: fix warning on windows build */ - #define NONBE_FIX_991_PARAMBIN_BINARY_HRTF /* Nokia: issue #991: fix using of binary file HRTF in ParamBin (to actiate when USE_NEW_HRTF_BINARY_FILE_FORMAT and FIX_777_COMBI_RENDER_CONFIG_FILE are on )*/ +#define NON_BE_FIX_EVS_USAN_ERR_IN_WAVEADJUST /* FhG: address issue 1037 */ #define NONBE_FIX_984_OMASA_EXT_OUTPUT /* Nok: issue 1497 - porting OMASA EXT MR */ /* #################### End BASOP porting switches ############################ */ diff --git a/lib_dec/waveadjust_fec_dec.c b/lib_dec/waveadjust_fec_dec.c index ecfbc919e8c24251d3fc1bd8236ecb30d1c40d3a..9d41dab6d1569ec6aa45fb4cc713a6c5d7f7f33f 100644 --- a/lib_dec/waveadjust_fec_dec.c +++ b/lib_dec/waveadjust_fec_dec.c @@ -742,7 +742,14 @@ void concealment_decode( /* sign randomization */ for ( i = 0; i < hPlcInfo->L_frameTCX; i++ ) { + +#ifdef NON_BE_FIX_EVS_USAN_ERR_IN_WAVEADJUST + int16_t rnd; + rnd = own_random( seed ); + sign = ( rnd >= 0 ) - ( rnd < 0 ); +#else sign = ( ( own_random( seed ) >> 15 ) << 1 ) + 1; +#endif invkoef[i] *= sign; } }