Commit 32e0eaea authored by fotopoulou's avatar fotopoulou
Browse files

revert previous commit and replace with proper fix

parent 8d7c9987
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -281,13 +281,20 @@ void ivas_mct_core_enc(
    {
        for ( ch = 0; ch < CPE_CHANNELS; ch++ )
        {
#ifdef ADJUST_MCT_CHANNELS_MAX
            if ( cpe_id * ch < nChannels )
            {
#endif
                sts[i] = hCPE[cpe_id]->hCoreCoder[ch];
#ifdef ADJUST_MCT_CHANNELS_MAX
            }
#endif
            if ( hCPE[cpe_id]->hCoreCoder[ch]->mct_chan_mode == MCT_CHAN_MODE_IGNORE )
            {
                i++;
                continue;
            }

            sts[i] = hCPE[cpe_id]->hCoreCoder[ch];
            mdst_spectrum[i][0] = hMCT->p_mdst_spectrum_long[cpe_id][ch];
            mdst_spectrum[i][1] = hMCT->p_mdst_spectrum_long[cpe_id][ch] + N_TCX10_MAX;
            orig_spectrum[i][0] = hMCT->p_orig_spectrum_long[cpe_id][ch];