Commit 826f05f8 authored by hsd's avatar hsd
Browse files

[fix] removed duplicated HeadRotationFileReading block, thx2szczerba

parent f73558f1
Loading
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -1509,24 +1509,6 @@ static ivas_error decodeG192(
            goto cleanup;
        }

#ifdef FIX_I109_ORIENTATION_TRACKING
      /* Reference rotation */
      if ( arg.enableReferenceRotation )
      {
        IVAS_QUATERNION quaternion;
        if ( ( error = HeadRotationFileReading( refRotReader, &quaternion ) ) != IVAS_ERR_OK )
        {
          fprintf( stderr, "\nError %s while reading reference rotation from %s\n", IVAS_DEC_GetErrorMessage( error ), HeadRotationFileReader_getFilePath( refRotReader ) );
          goto cleanup;
        }

        if ( ( error = IVAS_DEC_FeedRefRotData( hIvasDec, quaternion ) ) != IVAS_ERR_OK )
        {
          fprintf( stderr, "\nIVAS_DEC_FeedRefRotData failed: %s\n", IVAS_DEC_GetErrorMessage( error ) );
          goto cleanup;
        }
      }
#endif
#ifdef FIX_I109_ORIENTATION_TRACKING
      /* Reference rotation */
      if ( arg.enableReferenceRotation )