Merge pull request #461 from almiki:release

PiperOrigin-RevId: 542228372
This commit is contained in:
Tofunmi Adigun-Hameed 2023-06-22 15:34:28 +00:00
commit 6e9df8df77
2 changed files with 7 additions and 4 deletions

View File

@ -37,6 +37,9 @@
* MPEG-TS: Ensure the last frame is rendered by passing the last access
unit of a stream to the sample queue
([#7909](https://github.com/google/ExoPlayer/issues/7909)).
* Fix typo when determining `rotationDegrees`. Changed
`projectionPosePitch` to `projectionPoseRoll`
([#461](https://github.com/androidx/media/pull/461)).
* Audio:
* Audio Offload:
* Add `AudioSink.getFormatOffloadSupport(Format)` that retrieves level of

View File

@ -2293,12 +2293,12 @@ public class MatroskaExtractor implements Extractor {
// 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;
}
}