Commit e1f4bca8 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Minor change in check placement to align better with BASOP code.

parent ef37ae48
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -174,6 +174,14 @@ ivas_error ExternalOrientationFileReading(
    }

    ( externalOrientationReader->frameCounter )++;
#ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK

    /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */
    if ( w == -3.0f )
    {
        return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT;
    }
#endif

    pQuaternion->w = w;
    pQuaternion->x = x;
@@ -183,14 +191,6 @@ ivas_error ExternalOrientationFileReading(
    *enableExternalOrientation = (int8_t) extOrientationFlag;
    *enableRotationInterpolation = (int8_t) rotInterpolationFlag;
    *numFramesToTargetOrientation = (int16_t) nFramesToTarget;
#ifdef FIX_1370_EXTERNAL_ORIENTATION_CHECK

    /* Only Quaternion orientations are supported, raise an error if Euler angles are detected in the input */
    if ( pQuaternion->w == -3.0f )
    {
        return IVAS_ERR_EXTERNAL_ORIENTATION_INVALID_FORMAT;
    }
#endif

    return IVAS_ERR_OK;
}