Commit fcd5f672 authored by vaclav's avatar vaclav
Browse files

fix remaining USAN error

parent f336653f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -598,14 +598,18 @@ void ivas_dirac_dec_binaural(
    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
    for ( ch = 0; ch < BINAURAL_CHANNELS; ch++ )
    {
        p_output[ch] = output_f[ch];
        p_output[ch + BINAURAL_CHANNELS] = decorr_signal_buff[ch];
    }
#else
    for ( ch = 0; ch < 2 * BINAURAL_CHANNELS; ch++ )
    {
        p_output[ch] = &output_f[ch][0];
#endif
    }
#endif
    numInChannels = nchan_transport;
#ifdef MASA_AND_OBJECTS
    if ( st_ivas->hOutSetup.separateChannelEnabled || ( st_ivas->ivas_format == MASA_ISM_FORMAT && ( st_ivas->ism_mode == ISM_MASA_MODE_MASA_ONE_OBJ || st_ivas->ism_mode == ISM_MASA_MODE_PARAM_ONE_OBJ ) ) )
@@ -648,7 +652,6 @@ void ivas_dirac_dec_binaural(
        {
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
            decorr_signal[ch] = decorr_signal_buff[ch];
            p_output[ch + BINAURAL_CHANNELS] = decorr_signal[ch];
#else
            decorr_signal[ch] = (float *) &( output_f[ch + BINAURAL_CHANNELS][0] );
#endif