Commit 4c9ded69 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] try to reduce dynamic memory allocation for FastConv

parent 6dea53a5
Loading
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
@@ -810,9 +810,15 @@ ivas_error ivas_allocate_binaural_hrtf(
    }
#endif

#ifdef FIX_1123_FASTCONV_16BIT_ROM
#ifdef FIX_1123_FASTCONV_16BIT_FMT
#ifdef FIX_1146_OPT_FASTCONV_STRUCT
    else
#endif
        if ( ( renderer_type == RENDERER_BINAURAL_FASTCONV && bin_input_config == BINAURAL_INPUT_AUDIO_CONFIG_COMBINED ) || ( renderer_type == RENDERER_BINAURAL_FASTCONV && input_config != IVAS_AUDIO_CONFIG_INVALID ) )
#else
#ifdef FIX_1146_OPT_FASTCONV_STRUCT
    else
#endif
        if ( renderer_type == RENDERER_BINAURAL_FASTCONV || bin_input_config == BINAURAL_INPUT_AUDIO_CONFIG_COMBINED )
#endif
    {
@@ -856,9 +862,15 @@ ivas_error ivas_allocate_binaural_hrtf(
        }
    }

#ifdef FIX_1123_FASTCONV_16BIT_ROM
#ifdef FIX_1123_FASTCONV_16BIT_FMT
#ifdef FIX_1146_OPT_FASTCONV_STRUCT
    else
#endif
        if ( ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM && bin_input_config == BINAURAL_INPUT_AUDIO_CONFIG_COMBINED ) || ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM && input_config != IVAS_AUDIO_CONFIG_INVALID ) )
#else
#ifdef FIX_1146_OPT_FASTCONV_STRUCT
    else
#endif
        if ( renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM || bin_input_config == BINAURAL_INPUT_AUDIO_CONFIG_COMBINED )
#endif
    {