From 7160e00b20db9f5616d4db7d726471c93d860477 Mon Sep 17 00:00:00 2001 From: Chris Owen Date: Wed, 20 Oct 2021 19:26:01 +0200 Subject: [PATCH] android: one more change to video rotation --- android/java/com/waz/avs/VideoCapturer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/java/com/waz/avs/VideoCapturer.java b/android/java/com/waz/avs/VideoCapturer.java index 8f48d7821..58bec22d0 100644 --- a/android/java/com/waz/avs/VideoCapturer.java +++ b/android/java/com/waz/avs/VideoCapturer.java @@ -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;