Commit cf372e4b authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

create CPE for stereo upmix in OSBA with one transport channel

parent fc0510a5
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1537,6 +1537,18 @@ ivas_error ivas_init_decoder(
            }
        }

        /* create CPE element for DFT Stereo like upmix */
        if ( st_ivas->sba_dirac_stereo_flag && st_ivas->nCPE == 0 )
        {
            if ( ( error = create_cpe_dec( st_ivas, cpe_id, ivas_total_brate / ( st_ivas->nSCE + st_ivas->nCPE ) ) ) != IVAS_ERR_OK )
            {
                return error;
            }

            st_ivas->hCPE[0]->hCoreCoder[0] = st_ivas->hSCE[0]->hCoreCoder[0]; /* don't allocate unnecessary core coder, simply point to core coder of SCE element */
            st_ivas->hCPE[0]->hCoreCoder[1] = NULL;
        }

#ifdef OSBA_BR_SWITCHING
        if ( st_ivas->ism_mode == ISM_SBA_MODE_DISC )
        {