Skip to content

Commit

Permalink
android: one more change to video rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
c-g-owen committed Oct 20, 2021
1 parent 1c13e65 commit 7160e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/java/com/waz/avs/VideoCapturer.java
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public int getRotation() {
return (360 + ui_rotation - cameraInfo.orientation) % 360;

case CameraInfo.CAMERA_FACING_FRONT:
return (720 - ui_rotation - cameraInfo.orientation) % 360;
return (360 - ((ui_rotation + cameraInfo.orientation) % 360)) % 360;

default:
return 0;
Expand Down

0 comments on commit 7160e00

Please sign in to comment.