Commit e5a3d532 authored by multrus's avatar multrus
Browse files

remove (rotten) code under FIX_IVAS_337 + corresponding todo

parent 3e8bc6c8
Loading
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@
#include "stat_com.h"
#include "ivas_prot.h"

/*defne FIX_IVAS_337*/ // TODO: needs more work

/*-------------------------------------------------------------*
 * Local prototypes
 *-------------------------------------------------------------*/
@@ -189,9 +187,6 @@ void stereo_tcx_core_dec(

    /*Concealment*/
    int16_t bfi;
#ifdef FIX_IVAS_337 /*IVAS-337 consider BER */
    int16_t tcx_last_overlap_mode, tcx_current_overlap_mode;
#endif

    float psd[L_FRAME16k], psd_part[NPART_SHAPING];

@@ -267,28 +262,9 @@ void stereo_tcx_core_dec(
    if ( !bfi )
    {
        st->second_last_core = st->last_core;
#ifdef FIX_IVAS_337 /*IVAS-337 consider BER */
        tcx_last_overlap_mode = st->hTcxCfg->tcx_last_overlap_mode;
        tcx_current_overlap_mode = st->hTcxCfg->tcx_curr_overlap_mode;
#endif

        dec_prm_tcx( st, param, param_lpc, &total_nbbits, last_element_mode, &bitsRead );

#ifdef FIX_IVAS_337 /*IVAS-337 consider BER */
        if ( !st->rate_switching_init && st->BER_detect )
        {
            st->coder_type = st->last_coder_type;
            st->last_core = st->second_last_core;
            st->hTcxCfg->tcx_last_overlap_mode = tcx_last_overlap_mode;
            st->hTcxCfg->tcx_curr_overlap_mode = tcx_current_overlap_mode;
            st->bfi = 1;
            bfi = 1;
            st->flagGuidedAcelp = 0;
            st->nbLostCmpt++;
            st->core_brate = st->last_core_brate;
            st->core = GetPLCModeDecision( st );
        }
#endif
    }
    else
    {