From 9e56f466123c2b1b014494eff02d60c8ec0923b5 Mon Sep 17 00:00:00 2001 From: Tommy Vaillancourt Date: Thu, 15 Jan 2026 08:57:02 -0500 Subject: [PATCH] add FIX_1478_UNINIT_ON_BFI to the harm code --- lib_com/gs_noisefill_fx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib_com/gs_noisefill_fx.c b/lib_com/gs_noisefill_fx.c index c9c9a89ca..fd296e1a4 100644 --- a/lib_com/gs_noisefill_fx.c +++ b/lib_com/gs_noisefill_fx.c @@ -1150,11 +1150,19 @@ void highband_exc_dct_in_ivas_fx( test(); IF( bfi || LT_32( core_brate, 6000 ) || ( LT_32( core_brate, 8600 ) && EQ_16( coder_type, UNVOICED ) ) ) { +#ifndef FIX_1478_UNINIT_ON_BFI set16_fx( noisepb, 13107, MBANDS_GN ); /*0.4 in Q15 */ +#else + set16_fx( noisepb, 13107, last_bin ); /*0.4 in Q15 */ +#endif } ELSE IF( EQ_16( GSC_IVAS_mode, 3 ) || ( GSC_IVAS_mode > 0 && EQ_16( GSC_noisy_speech, 1 ) ) ) { +#ifndef FIX_1478_UNINIT_ON_BFI set16_fx( noisepb, 13107 /*0.4f*/, MBANDS_GN16k ); +#else + set16_fx( noisepb, 13107 /*0.4f*/, last_bin ); +#endif } ELSE { @@ -1171,7 +1179,11 @@ void highband_exc_dct_in_ivas_fx( IF( GSC_IVAS_mode == 0 && GSC_noisy_speech && !bfi && LE_16( element_mode, IVAS_SCE ) ) { +#ifndef FIX_1478_UNINIT_ON_BFI set16_fx( noisepb, 3277, MBANDS_GN ); +#else + set16_fx( noisepb, 3277, last_bin ); +#endif } test(); -- GitLab