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

fix asan error in DirAC head rotation

parent 38ae0a6d
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2995,15 +2995,11 @@ void ivas_dirac_dec_render_sf(
        {
            num_freq_bands = hDirAC->band_grouping[hDirAC->hConfig->enc_param_start_band];
#ifdef JBM_TSM_ON_TCS
#ifndef FIX_642
            for ( slot_idx = 0; slot_idx < hDirAC->subframe_nbslots[subframe_idx]; slot_idx++ )
#endif
#else
            for ( slot_idx = 0; slot_idx < hDirAC->subframe_nbslots; slot_idx++ )
#endif
#ifndef FIX_642
            {
#endif
#ifdef JBM_TSM_ON_TCS
                rotateAziEle_DirAC( azimuth[slot_idx], elevation[slot_idx], num_freq_bands, hDirAC->num_freq_bands, p_Rmat );
#else
@@ -3012,9 +3008,7 @@ void ivas_dirac_dec_render_sf(
            /* Todo: This access to azimuth & elevation may use wrong indices as access should probably be based on hDirAC->dirac_read_idx */
            rotateAziEle_DirAC( hDirAC->azimuth[index_slot], hDirAC->elevation[index_slot], num_freq_bands, hDirAC->num_freq_bands, p_Rmat );
#endif
#ifndef FIX_642
            }
#endif
        }
    }
#if defined( JBM_TSM_ON_TCS ) & !defined( FIX_642)