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

fix crash in binaural decoding

parent 139d983f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -236,6 +236,13 @@ ivas_error ivas_spar_dec_open(
        buffer_mode = TC_BUFFER_MODE_RENDERER;
        nchan_tc = ivas_jbm_dec_get_num_tc_channels( st_ivas );
        nchan_to_allocate = num_channels_internal;
#ifdef JBM_FOR_OSBA
		if ( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_SBA_MODE_DISC )
        {
            nchan_to_allocate += st_ivas->nchan_ism;
        }
#endif


#ifdef JBM_FOR_OSBA
        granularity = NS2SA( st_ivas->hDecoderConfig->output_Fs, CLDFB_SLOT_NS );