Commit 8c817881 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

wrap changes into the new switch FIX_642

parent f2dbf8ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -216,6 +216,8 @@

#define COMPLEXITY_LEVEL_INDICATION

#define FIX_642											/* FhG: Fix for usse 642, buggy DoA-array access in DirAC head rotation*/

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */

+4 −0
Original line number Diff line number Diff line
@@ -2572,7 +2572,11 @@ void ivas_dirac_dec(
                num_freq_bands = hDirAC->band_grouping[hDirAC->hConfig->enc_param_start_band];
                for ( slot_idx = 0; slot_idx < hDirAC->subframe_nbslots; slot_idx++ )
                {
#ifndef FIX_642
                    index_slot = subframe_idx * hDirAC->subframe_nbslots + slot_idx;
#else
                    index_slot = ( hDirAC->dirac_read_idx + slot_idx ) % hDirAC->dirac_md_buffer_length;
#endif
                    rotateAziEle_DirAC( hDirAC->azimuth[index_slot], hDirAC->elevation[index_slot], num_freq_bands, hDirAC->num_freq_bands, p_Rmat );
                }
            }