Commit 76a7c988 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix number of TC buffers for MONO/STEREO output

parent 058b204a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -388,7 +388,12 @@ int16_t ivas_get_nchan_buffers_dec(
            nchan_out_buff = st_ivas->hDecoderConfig->nchan_out + st_ivas->nchan_ism; /*take into account sba_ch_idx' in ivas_dec() */
        }
#ifdef NONBE_FIX_798_OSBA_MC_DEC_CRASH
#ifdef JBM_FOR_OSBA
        if ( !( output_config == IVAS_AUDIO_CONFIG_MONO || output_config == IVAS_AUDIO_CONFIG_STEREO ) )
#endif
        {
            nchan_out_buff = max( nchan_out_buff, nchan_internal + st_ivas->nchan_ism );
        }
#endif
        nchan_out_buff = min( nchan_out_buff, MAX_OUTPUT_CHANNELS + MAX_NUM_OBJECTS );
    }