diff --git a/lib_com/options.h b/lib_com/options.h index ab556d262e7ad6602c9f3fcb791c3fbfe8ec0099..c9c5644f935a5d8d62b0e71408d59ef013f4704c 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -191,6 +191,7 @@ #define CODE_IMPROVEMENTS #define NONBE_1359_FIX_IVASREND_OMASA_BINAURAL_LOUDNESS /* Nokia: issue 1339: Apply scaling to the object-part of OMASA for binaural rendering in IVAS_rend. */ #define NONBE_1362_FIX_OMASA_TO_MASA1_RENDERING /* Nokia: Fix OMASA to MASA1 rendering in IVAS_rend */ +#define FIX_1383_HEAD_TRACK_SANITIZER /* Nok: issue 1383: Fix head tracking struc values reading in renderer */ // object-editing feature porting diff --git a/lib_rend/ivas_rotation.c b/lib_rend/ivas_rotation.c index 0a4a7c4ec9dea35488fef6d13b7178df656c8224..241b2ae5dac39aaa9e8451cd4e1fee7c46dc74fc 100644 --- a/lib_rend/ivas_rotation.c +++ b/lib_rend/ivas_rotation.c @@ -906,6 +906,12 @@ ivas_error combine_external_and_head_orientations_rend( int16_t i; sr_pose_pred_axis = DEFAULT_AXIS; +#ifdef FIX_1383_HEAD_TRACK_SANITIZER + if ( hHeadTrackData->headRotEnabled ) + { + headRotQuaternions = hHeadTrackData->headPositions; + listenerPos = hHeadTrackData->Pos; +#else if ( hHeadTrackData != NULL ) { if ( hHeadTrackData->headRotEnabled ) @@ -913,6 +919,7 @@ ivas_error combine_external_and_head_orientations_rend( headRotQuaternions = hHeadTrackData->headPositions; listenerPos = hHeadTrackData->Pos; } +#endif sr_pose_pred_axis = hHeadTrackData->sr_pose_pred_axis; } else if ( hExtOrientationData != NULL )