Commit 7668943b authored by sagnowski's avatar sagnowski
Browse files

Combined orientation data: use the same indexing for helper head poses as for the main pose

This fixes an out-of-bounds array access in split rendering
parent f461fe5e
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -854,11 +854,19 @@ static void ivas_dirac_dec_binaural_internal(
                mvr2r( st_ivas->hDiracDecBin[0]->ChCrossIm, hDiracDecBin->ChCrossIm, hSpatParamRendCom->num_freq_bands );

                ivas_dirac_dec_binaural_formulate_target_covariance_matrices( hDiracDecBin, hSpatParamRendCom, &config_data, Rmat_local, subframe,
#ifdef FIX_1119_SPLIT_RENDERING_VOIP
                                                                              hCombinedOrientationData && hCombinedOrientationData->enableCombinedOrientation[hCombinedOrientationData->subframe_idx] > 0,
#else
                                                                              hCombinedOrientationData && hCombinedOrientationData->enableCombinedOrientation[subframe] > 0,
#endif
                                                                              subFrameTotalEne, IIReneLimiter, st_ivas->hMasaIsmData );

                ivas_dirac_dec_binaural_determine_processing_matrices( hDiracDecBin, hSpatParamRendCom, &config_data, max_band_decorr, Rmat_local, subframe,
#ifdef FIX_1119_SPLIT_RENDERING_VOIP
                                                                       hCombinedOrientationData && hCombinedOrientationData->enableCombinedOrientation[hCombinedOrientationData->subframe_idx] > 0,
#else
                                                                       hCombinedOrientationData && hCombinedOrientationData->enableCombinedOrientation[subframe] > 0,
#endif
                                                                       nchanSeparateChannels, st_ivas->hMasaIsmData );