Commit 4818c7da authored by Marek Szczerba's avatar Marek Szczerba
Browse files

Null position pointer handling

parent 762cfde9
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -132,11 +132,6 @@ ivas_error HeadRotationFileReading(
        return IVAS_ERR_FAILED_FILE_PARSE;
    }

    if ( read_values == 7 && pPos == NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    ( headRotReader->frameCounter )++;

    pQuaternion->w = w;
@@ -144,9 +139,12 @@ ivas_error HeadRotationFileReading(
    pQuaternion->y = y;
    pQuaternion->z = z;
#ifdef TD5
    if ( pPos != NULL )
    {
        pPos->x = posx;
        pPos->y = posy;
        pPos->z = posz;
    }
#endif

    return IVAS_ERR_OK;