Skip to content

Commit 8b25879

Browse files
authored
Fixed typo when determining 'rotationDegrees'
projectionPosePitch => projectionPoseRoll
1 parent 2fc189d commit 8b25879

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
@@ -2294,12 +2294,12 @@ public void initializeOutput(ExtractorOutput output, int trackId) throws ParserE
22942294
// The range of projectionPoseRoll is [-180, 180].
22952295
if (Float.compare(projectionPoseRoll, 0f) == 0) {
22962296
rotationDegrees = 0;
2297-
} else if (Float.compare(projectionPosePitch, 90f) == 0) {
2297+
} else if (Float.compare(projectionPoseRoll, 90f) == 0) {
22982298
rotationDegrees = 90;
2299-
} else if (Float.compare(projectionPosePitch, -180f) == 0
2300-
|| Float.compare(projectionPosePitch, 180f) == 0) {
2299+
} else if (Float.compare(projectionPoseRoll, -180f) == 0
2300+
|| Float.compare(projectionPoseRoll, 180f) == 0) {
23012301
rotationDegrees = 180;
2302-
} else if (Float.compare(projectionPosePitch, -90f) == 0) {
2302+
} else if (Float.compare(projectionPoseRoll, -90f) == 0) {
23032303
rotationDegrees = 270;
23042304
}
23052305
}

0 commit comments

Comments
 (0)