Skip to content

TCX5 TNS ungroupping bug should be fixed in EVS

This is a place holder for the TODO in dec_tcx.c line 1510

if ( ( L_frame == st->L_frame >> 1 ) && st->tcxonly && isTCX5 )
{
     if ( st->element_mode == EVS_MONO || L_spec < L_frameTCX ) /* todo: this is temporary to maintain EVS BE, this is a bug and should be fixed also for EVS (see issue 13) */
     {
           tcx5TnsUngrouping( L_frameTCX >> 1, hTcxCfg->tnsConfig[0][0].iFilterBorders[0] >> 1, x, DEC );
     }
     else
     {
           tcx5TnsUngrouping( L >> 1, hTcxCfg->tnsConfig[0][0].iFilterBorders[0] >> 1, x, DEC );
     }
}

There is a bug with TCX5 TNS ungroupping that causes issues when output sampling rate is different than input sampling rate. This was fixed for IVAS (see #13 (closed)), however this should also be fixed for EVS via CR.