Commit 48fdfdf4 authored by bayers's avatar bayers
Browse files

also take frozen ext into account

parent 3f3bcd55
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1363,13 +1363,17 @@ static void external_target_interpolation(
                if ( i > 0 )
                {
#ifdef NONBE_FIX_809_EXTERNAL_TARGET_INTERPOLATION
                    if ( hExtOrientationData->enableExternalOrientation[i - 1] != 1 )
                    if ( hExtOrientationData->enableExternalOrientation[i - 1] == 0 )
                    {
                        IVAS_QUATERNION identity;
                        identity.w = 1.0f;
                        identity.x = identity.y = identity.z = 0.0f;
                        hCombinedOrientationData->Quaternions_ext_interpolation_start = identity;
                    }
                    else if ( hExtOrientationData->enableExternalOrientation[i - 1] == 2 )
                    {
                        hCombinedOrientationData->Quaternions_ext_interpolation_start = hCombinedOrientationData->Quaternion_frozen_ext;
                    }
                    else
#endif
                    {