From 961ad72399a44b5e101e3b500b687c118a819f44 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Fri, 9 Oct 2020 10:48:04 +1100 Subject: [PATCH] Don't use absolute rotation angle Preserving the sign indicates which way rotation occurs. --- Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java b/Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java index 5adaf1da3..c7294007f 100644 --- a/Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java +++ b/Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java @@ -60,7 +60,7 @@ public void addMetadata(QuickTimeDirectory directory) { double y = matrix[0] + matrix[3]; double theta = Math.atan2(y, x); double degree = Math.toDegrees(theta) - 45; - directory.setDouble(QuickTimeDirectory.TAG_ROTATION, Math.abs(degree)); + directory.setDouble(QuickTimeDirectory.TAG_ROTATION, degree); } } }