Commit f34d1279 authored by vaclav's avatar vaclav
Browse files

fix #703: EVS memory increase with FIX_264_AUDIO_CHANNELS_TO_HEAP

parent 8988cbf3
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -417,7 +417,11 @@ ivas_error ivas_init_encoder(
     *-----------------------------------------------------------------*/

    nchan_inp_buff = hEncoderConfig->nchan_inp;
    if ( ivas_format == MASA_ISM_FORMAT )
    if ( ivas_format == MONO_FORMAT )
    {
        nchan_inp_buff = 0;
    }
    else if ( ivas_format == MASA_ISM_FORMAT )
    {
        if ( hEncoderConfig->nchan_inp - hEncoderConfig->nchan_ism == 1 ) /* mono is duplicated in monoMASA */
        {
+5 −1
Original line number Diff line number Diff line
@@ -274,7 +274,11 @@ int16_t ivas_get_nchan_buffers_dec(

    nchan_out_buff = MAX_OUTPUT_CHANNELS;

    if ( st_ivas->ivas_format == STEREO_FORMAT )
    if ( st_ivas->ivas_format == MONO_FORMAT )
    {
        nchan_out_buff = 0;
    }
    else if ( st_ivas->ivas_format == STEREO_FORMAT )
    {
        nchan_out_buff = max( st_ivas->hDecoderConfig->nchan_out, CPE_CHANNELS );
    }