Commit ceab7721 authored by vaclav's avatar vaclav
Browse files

fix ASAN issue in TD decorrelator

parent 83d86954
Loading
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -591,12 +591,20 @@ void ivas_dirac_dec_binaural(
    int16_t ch;
    int16_t slot_size;
    int16_t numInChannels;
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
    float *decorr_signal[BINAURAL_CHANNELS], decorr_signal_buff[BINAURAL_CHANNELS][L_FRAME48k];
#endif

    hSpatParamRendCom = st_ivas->hSpatParamRendCom;

    slot_size = NS2SA( st_ivas->hDecoderConfig->output_Fs, CLDFB_SLOT_NS );
    for ( ch = 0; ch < 2 * BINAURAL_CHANNELS; ch++ )
    {
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
        p_output[ch] = output_f[ch];
#else
        p_output[ch] = &output_f[ch][0];
#endif
    }
    numInChannels = nchan_transport;
#ifdef MASA_AND_OBJECTS
@@ -631,9 +639,7 @@ void ivas_dirac_dec_binaural(
    if ( st_ivas->hDiracDecBin->useTdDecorr )
#endif
    {
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
        float *decorr_signal[BINAURAL_CHANNELS], decorr_signal_buff[BINAURAL_CHANNELS][L_FRAME48k];
#else
#ifndef FIX_264_AUDIO_CHANNELS_TO_HEAP
        float *decorr_signal[BINAURAL_CHANNELS];
#endif
        int16_t output_frame;