Commit cd04e594 authored by vaclav's avatar vaclav
Browse files

fix

parent 4df11c09
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -779,7 +779,7 @@ void stereo_tcx_enc_scale_buffers(

    IF( EQ_16( hTcxEnc->tcxMode, TCX_20 ) )
    {
        L_spec = st->hTcxCfg->tcx_coded_lines;
        L_spec = hTcxEnc->L_frameTCX;
        move16();
        e_max = s_max( hTcxEnc->spectrum_e[0], Q_spec_old );
        e_max = sub( e_max, L_norm_arr( hTcxEnc->spectrum_long_fx, N_MAX ) );
@@ -791,7 +791,7 @@ void stereo_tcx_enc_scale_buffers(
    }
    ELSE
    {
        L_spec = shr( st->hTcxCfg->tcx_coded_lines, 1 );
        L_spec = shr( hTcxEnc->L_frameTCX, 1 );
        e_max = s_max( Q_spec_old, s_max( hTcxEnc->spectrum_e[0], hTcxEnc->spectrum_e[1] ) );
        e_max = sub( e_max, L_norm_arr( hTcxEnc->spectrum_long_fx, N_MAX ) );
        scale_sig32( hTcxEnc->spectrum_fx[0], L_spec, sub( hTcxEnc->spectrum_e[0], e_max ) );                          // exp(e_max)