Fixed typo when determining 'rotationDegrees'

projectionPosePitch => projectionPoseRoll
This commit is contained in:
Alex Kinney 2023-06-13 13:30:48 -04:00 committed by Rohit Singh
parent e0191ddded
commit 77c7c189a6

View File

@ -2293,12 +2293,12 @@ public class MatroskaExtractor implements Extractor {
// The range of projectionPoseRoll is [-180, 180]. // The range of projectionPoseRoll is [-180, 180].
if (Float.compare(projectionPoseRoll, 0f) == 0) { if (Float.compare(projectionPoseRoll, 0f) == 0) {
rotationDegrees = 0; rotationDegrees = 0;
} else if (Float.compare(projectionPosePitch, 90f) == 0) { } else if (Float.compare(projectionPoseRoll, 90f) == 0) {
rotationDegrees = 90; rotationDegrees = 90;
} else if (Float.compare(projectionPosePitch, -180f) == 0 } else if (Float.compare(projectionPoseRoll, -180f) == 0
|| Float.compare(projectionPosePitch, 180f) == 0) { || Float.compare(projectionPoseRoll, 180f) == 0) {
rotationDegrees = 180; rotationDegrees = 180;
} else if (Float.compare(projectionPosePitch, -90f) == 0) { } else if (Float.compare(projectionPoseRoll, -90f) == 0) {
rotationDegrees = 270; rotationDegrees = 270;
} }
} }