Commit 5e68081b authored by vaillancour's avatar vaillancour
Browse files

harmonise and nicer solution to 1478

parent b38c569a
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -592,12 +592,16 @@ void highband_exc_dct_in(
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.4f, MBANDS_GN );
#else
        set_f( noisepb, 0.4f, MBANDS_GN16k );
        set_f( noisepb, 0.4f, last_bin );
#endif
    }
    else if ( GSC_IVAS_mode == 3 || ( GSC_IVAS_mode > 0 && GSC_noisy_speech == 1 ) )
    {
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.4f, MBANDS_GN16k );
#else
        set_f( noisepb, 0.4f, last_bin );
#endif
    }
    else
    {
@@ -611,7 +615,11 @@ void highband_exc_dct_in(

    if ( GSC_IVAS_mode == 0 && GSC_noisy_speech && !bfi && element_mode <= IVAS_SCE )
    {
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.1f, MBANDS_GN );
#else
        set_f( noisepb, 0.1f, last_bin );
#endif
    }

    if ( core_brate < 6000 && coder_type <= UNVOICED )