mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fixed typo when determining 'rotationDegrees'
projectionPosePitch => projectionPoseRoll
This commit is contained in:
parent
e0191ddded
commit
77c7c189a6
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue