Skip to content

Commit 77c7c18

Browse files
almikirohitjoins
authored andcommitted
Fixed typo when determining 'rotationDegrees'
projectionPosePitch => projectionPoseRoll
1 parent e0191dd commit 77c7c18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/extractor/src/main/java/androidx/media3/extractor/mkv/MatroskaExtractor.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -2293,12 +2293,12 @@ public void initializeOutput(ExtractorOutput output, int trackId) throws ParserE
22932293
// The range of projectionPoseRoll is [-180, 180].
22942294
if (Float.compare(projectionPoseRoll, 0f) == 0) {
22952295
rotationDegrees = 0;
2296-
} else if (Float.compare(projectionPosePitch, 90f) == 0) {
2296+
} else if (Float.compare(projectionPoseRoll, 90f) == 0) {
22972297
rotationDegrees = 90;
2298-
} else if (Float.compare(projectionPosePitch, -180f) == 0
2299-
|| Float.compare(projectionPosePitch, 180f) == 0) {
2298+
} else if (Float.compare(projectionPoseRoll, -180f) == 0
2299+
|| Float.compare(projectionPoseRoll, 180f) == 0) {
23002300
rotationDegrees = 180;
2301-
} else if (Float.compare(projectionPosePitch, -90f) == 0) {
2301+
} else if (Float.compare(projectionPoseRoll, -90f) == 0) {
23022302
rotationDegrees = 270;
23032303
}
23042304
}

0 commit comments

Comments
 (0)