Commit a2f8fbf1 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1475: 160 kbit/s ISM4 Encoder: FB BWE lacking energy

Link #1475
parent 45b3f07f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -7548,7 +7548,7 @@ void fb_tbe_enc_ivas_fx(
    move16();

    temp2 = sum2_fx_no_sat( input_fhb, L_FRAME48k / 2 );                                                           // 2*q_input_fhb                                                                                                               /* Q(2*Q_input_fhb-8) */
    temp2 = W_add( temp2, W_shl( hBWE_TD->prev_fb_energy_fx, sub( q_input_fhb, hBWE_TD->prev_fb_energy_fx_Q ) ) ); // 2*q_input_fhb
    temp2 = W_add( temp2, W_shl( hBWE_TD->prev_fb_energy_fx, sub( shl( q_input_fhb, 1 ), hBWE_TD->prev_fb_energy_fx_Q ) ) ); // 2*q_input_fhb

    temp1 = sum2_fx_no_sat( input_fhb + L_FRAME48k / 2, L_FRAME48k / 2 ); // 2*q_input_fhb
    exp = W_norm( temp1 );
@@ -7605,7 +7605,6 @@ void fb_tbe_enc_ivas_fx(
    {
        push_indice( st->hBstr, IND_FB_SLOPE, idxGain, 4 );
    }

    return;
}
void tbe_write_bitstream_fx(