Skip to content

Commit

Permalink
Fixed typo when determining 'rotationDegrees'
Browse files Browse the repository at this point in the history
projectionPosePitch => projectionPoseRoll
  • Loading branch information
almiki committed Jun 13, 2023
1 parent 2fc189d commit 8b25879
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2294,12 +2294,12 @@ public void initializeOutput(ExtractorOutput output, int trackId) throws ParserE
// The range of projectionPoseRoll is [-180, 180].
if (Float.compare(projectionPoseRoll, 0f) == 0) {
rotationDegrees = 0;
} else if (Float.compare(projectionPosePitch, 90f) == 0) {
} else if (Float.compare(projectionPoseRoll, 90f) == 0) {
rotationDegrees = 90;
} else if (Float.compare(projectionPosePitch, -180f) == 0
|| Float.compare(projectionPosePitch, 180f) == 0) {
} else if (Float.compare(projectionPoseRoll, -180f) == 0
|| Float.compare(projectionPoseRoll, 180f) == 0) {
rotationDegrees = 180;
} else if (Float.compare(projectionPosePitch, -90f) == 0) {
} else if (Float.compare(projectionPoseRoll, -90f) == 0) {
rotationDegrees = 270;
}
}
Expand Down

0 comments on commit 8b25879

Please sign in to comment.