Commit 23a1a62f authored by bayers's avatar bayers
Browse files

fix a small inconsistency between number of TC init and number of common...

fix a small inconsistency between number of TC init and number of common buffer channels init for BINUARAL/STEREO output and OMASA
parent 04b34583
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -345,6 +345,12 @@ int16_t ivas_get_nchan_buffers_dec(
        {
            nchan_out_buff = max( nchan_out_buff, st_ivas->hOutSetup.nchan_out_woLFE + st_ivas->hOutSetup.num_lfe );
        }
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
        else if ( st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC || st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM || st_ivas->renderer_type == RENDERER_STEREO_PARAMETRIC )
        {
            nchan_out_buff = max( nchan_out_buff, 2 * BINAURAL_CHANNELS + 2 );
        }
#endif
        else if ( output_config != IVAS_AUDIO_CONFIG_EXTERNAL )
        {
            nchan_out_buff = max( nchan_out_buff, audioCfg2channels( st_ivas->intern_config ) );