Skip to content
Snippets Groups Projects
Commit 66f4b1e9 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

cmdutils: Fix sign error in display matrix auto-rotation code


This makes the sample from Ticket4560 behave consistently with either branch

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 57e38043
No related branches found
No related tags found
No related merge requests found
......@@ -2101,7 +2101,7 @@ double get_rotation(AVStream *st)
theta = 0;
}
if (displaymatrix && !theta)
theta = av_display_rotation_get((int32_t*) displaymatrix);
theta = -av_display_rotation_get((int32_t*) displaymatrix);
theta -= 360*floor(theta/360 + 0.9/360);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment