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

fix indexing of DoA arrays for head rotation in DirAC

parent e2ce0043
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2572,8 +2572,7 @@ 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++ )
                {
                    index_slot = subframe_idx * hDirAC->subframe_nbslots + slot_idx;
                    /* Todo: This access to azimuth & elevation may use wrong indices as access should probably be based on hDirAC->dirac_read_idx */
                    index_slot = ( hDirAC->dirac_read_idx + slot_idx ) % hDirAC->dirac_md_buffer_length;
                    rotateAziEle_DirAC( hDirAC->azimuth[index_slot], hDirAC->elevation[index_slot], num_freq_bands, hDirAC->num_freq_bands, p_Rmat );
                }
            }