Skip to content

Commit 7f52477

Browse files
committed
Fix order of atan args
1 parent bd41996 commit 7f52477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MetadataExtractor/Formats/QuickTime/QuickTimeMetadataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void SetRotation(QuickTimeTrackHeaderDirectory directory)
8888
{
8989
var x = matrix[1] + matrix[4];
9090
var y = matrix[0] + matrix[3];
91-
var theta = Math.Atan2(x, y);
91+
var theta = Math.Atan2(y, x);
9292
var degree = RadiansToDegrees(theta) - 45;
9393

9494
directory.Set(QuickTimeTrackHeaderDirectory.TagRotation, degree);

0 commit comments

Comments
 (0)