Commit d49c0a53 authored by bayers's avatar bayers
Browse files

fix problem in CPE deallocation with the new MC rs MCT LFE channel

handling
parent 0bd96bd1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -852,7 +852,7 @@ void destroy_cpe_dec(

#ifdef MC_BITRATE_SWITCHING
    /* make sure we deallocate a potential distinct hTcxCfg for a MCT LFE channel (can only happen in rs) */
    if ( hCPE->hCoreCoder[1]->mct_chan_mode == MCT_CHAN_MODE_LFE && hCPE->hCoreCoder[1]->hTcxCfg != hCPE->hCoreCoder[0]->hTcxCfg )
    if ( hCPE->hCoreCoder[1] != NULL && hCPE->hCoreCoder[1]->mct_chan_mode == MCT_CHAN_MODE_LFE && hCPE->hCoreCoder[1]->hTcxCfg != hCPE->hCoreCoder[0]->hTcxCfg )
    {
        hCPE->hCoreCoder[1]->mct_chan_mode = MCT_CHAN_MODE_IGNORE;
    }