Commit 3e3f8223 authored by bayers's avatar bayers
Browse files

fixed ParamISM open function

parent 92f6c9b4
Loading
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -795,10 +795,8 @@ ivas_error ivas_param_ism_dec_open(
    st_ivas->hISMDTX.dtx_flag = 0;

    st_ivas->hDirAC = hDirAC;
    hDirAC->hParamIsmRendering->Cldfb_RealBuffer_tc = NULL;
    hDirAC->hParamIsmRendering->Cldfb_ImagBuffer_tc = NULL;
#ifdef JBM_TSM_ON_TCS
    if ( st_ivas->hDecoderConfig->voip_active && st_ivas->hTcBuffer == NULL )
    if ( st_ivas->hDecoderConfig->voip_active )
    {
        if ( st_ivas->renderer_type != RENDERER_MONO_DOWNMIX && st_ivas->renderer_type != RENDERER_DISABLE )
        {
@@ -816,6 +814,10 @@ ivas_error ivas_param_ism_dec_open(
            }
        }
        else
        {
            hDirAC->hParamIsmRendering->Cldfb_RealBuffer_tc = NULL;
            hDirAC->hParamIsmRendering->Cldfb_ImagBuffer_tc = NULL;
            if ( st_ivas->hTcBuffer == NULL )
            {
                int16_t nchan_to_allocate = st_ivas->hDecoderConfig->nchan_out;
                if ( ( error = ivas_jbm_dec_tc_buffer_open( st_ivas, TC_BUFFER_MODE_BUFFER, nchan_to_allocate, nchan_to_allocate, nchan_to_allocate, NS2SA( st_ivas->hDecoderConfig->output_Fs, CLDFB_SLOT_NS ) ) ) != IVAS_ERR_OK )
@@ -824,6 +826,7 @@ ivas_error ivas_param_ism_dec_open(
                }
            }
        }
    }
#endif

    pop_wmops();