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

fix compilation problem with memory counting macros in lib_com/ivas_fb_mixer.c

parent 48c332c9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -289,14 +289,11 @@ ivas_error ivas_FB_mixer_open(
    if ( ( fb_cfg->active_w_mixing != -1 ) && ( fb_cfg->num_out_chans > 0 ) )
    {
        float *pTemp_mem;

        if ( ( pTemp_mem = (float *) malloc( sizeof( float ) * fb_cfg->num_out_chans *
#ifdef HODIRAC
                                             max( fb_cfg->num_in_chans, fb_cfg->nchan_fb_in ) *
        if ( ( pTemp_mem = (float *) malloc( sizeof( float ) * fb_cfg->num_out_chans * max( fb_cfg->num_in_chans, fb_cfg->nchan_fb_in ) * IVAS_MAX_NUM_BANDS ) ) == NULL )
#else
                                             fb_cfg->num_in_chans *
        if ( ( pTemp_mem = (float *) malloc( sizeof( float ) * fb_cfg->num_out_chans * fb_cfg->num_in_chans * IVAS_MAX_NUM_BANDS ) ) == NULL )
#endif
                                             IVAS_MAX_NUM_BANDS ) ) == NULL )
        {
            return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for FB mixer" );
        }