Commit 4d5a719b authored by Lauros Pajunen's avatar Lauros Pajunen
Browse files

Add switche for issue 1383

parent f214d465
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@

/*#define FIX_I4_OL_PITCH*/                             /* fix open-loop pitch used for EVS core switching */
#define TMP_FIX_1119_SPLIT_RENDERING_VOIP               /* FhG: Add error check for unsupported config: split rendering with VoIP mode */
#define FIX_1383_HEAD_TRACK_SANITIZER                   /* Nok: issue 1383: Fix head tracking struc values reading in renderer */


/* #################### End BE switches ################################## */
+10 −0
Original line number Diff line number Diff line
@@ -898,10 +898,20 @@ 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 )
        {
            headRotQuaternions = hHeadTrackData->headPositions;
            listenerPos = hHeadTrackData->Pos;
        }
#endif
        sr_pose_pred_axis = hHeadTrackData->sr_pose_pred_axis;
    }
    else if ( hExtOrientationData != NULL )