Skip to content

Wrong indexing while reading external orientations in renderer

Bug description

The indexing is wrong while reading external orientations from a file in renderer.c lines 1565-1567.

        for ( sf_idx = 0; sf_idx < num_subframes; sf_idx++ )
        {
            if ( ( error = ExternalOrientationFileReading( externalOrientationFileReader, &quatBuffer[i], &enableHeadRotation[i], &enableExternalOrientation[i], &enableRotationInterpolation[i], &numFramesToTargetOrientation[i] ) ) != IVAS_ERR_OK )
            {

The reading loops over sf_idx, but the updated values are indexed with i. The index i should be replaced with the correct index sf_idx.

Ways to reproduce

Run IVAS_rend with -exof flag on and with some orientation file.