diff --git a/lib_com/options.h b/lib_com/options.h index 708e7f6334a83fd61299f17359b1e0e3e73a72d5..867d83ee0c588a5332504a4d0137c9b70617e9fe 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -73,7 +73,7 @@ /*#define FIX_I4_OL_PITCH*/ /* fix open-loop pitch used for EVS core switching */ #define FIX_1990_SANITIZER_IN_REVERB_LOAD /* Nokia: Fix issue part of issue 1990 by introducing missing free of structure - keep until #2059 is addressed */ #define FIX_1999_TEMPORARY_DISABLE_DIST_ATT_CHECK /* Eri: Issue 1999: Range check on float values of distance attenuation, while the float values are not propagated to this function. The test is not correct, but configurable distance attenuation is not used in Characterization.*/ - +#define FIX_2015_PREMPH_SAT_ALT_PART2 /* VA: Add missing scaling factor to be passed to AVQ_cod() */ /* ################### End FIXES switches ########################### */ /* #################### Start BASOP porting switches ############################ */ diff --git a/lib_enc/enc_higher_acelp_fx.c b/lib_enc/enc_higher_acelp_fx.c index db4088ac581970a4b9af79fce9355fbfb13424e3..bf0606e82b8d9320c016cffe645aa445bc8620b2 100644 --- a/lib_enc/enc_higher_acelp_fx.c +++ b/lib_enc/enc_higher_acelp_fx.c @@ -489,9 +489,11 @@ void transf_cdbk_enc_ivas_fx( /*--------------------------------------------------------------* * Split algebraic vector quantizer based on RE8 lattice *--------------------------------------------------------------*/ - +#ifndef FIX_2015_PREMPH_SAT_ALT_PART2 AVQ_cod_fx( x_tran, x_norm, nBits, Nsv, 0 ); - +#else + AVQ_cod_fx( x_tran, x_norm, nBits, Nsv, Qdct ); +#endif /*--------------------------------------------------------------* * Find prequantizer excitation gain * Quantize the gain