(hCPE->hStereoClassif->lrtd_mode==1&&(sts[0]->tdm_LRTD_flag==0||(sts[0]->tdm_LRTD_flag==1&&((rms_L<2*rms_thd&&rms_R<2*rms_thd)||(sts[0]->hSpMusClas->past_dec[0]!=sts[1]->hSpMusClas->past_dec[0])))))/* Even if the UNCLR is set to 1, the content should be encoded with TD, lower swichting requierment */
||(sts[0]->hSpMusClas->past_dec[0]!=sts[1]->hSpMusClas->past_dec[0])))))/* Even if the UNCLR is set to 1, the content should be encoded with TD, lower switching requirement */
if(desired_idx!=hStereoTD->tdm_prev_desired_idx&&hStereoTD->tdm_last_LRTD_frame_cnt==1&&sts[0]->last_coder_type<=UNVOICED)/* TD transtionning to FD, we don't want an inversion of channels on the first transition frame */
/* we don't want an inversion of channels on the first transition frame */
/* Change the switching level in case of dual mono (in case the scenario still accept left right switching */
/* This logic is needed in case the content is exactly the same in the 2 channel and it is expected to get back to LRTD, to prevent the secondary channel to be completely empty */