summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-18 01:11:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-18 02:07:34 +0200
commit66f4b1e9c4a4158d810e5905bf742e1bcc443130 (patch)
tree920cbf110b011ac062ca1fcd202943fb82e01b24 /cmdutils.c
parent57e38043def65418333885c7481b197d470af336 (diff)
downloadffmpeg-streaming-66f4b1e9c4a4158d810e5905bf742e1bcc443130.zip
ffmpeg-streaming-66f4b1e9c4a4158d810e5905bf742e1bcc443130.tar.gz
cmdutils: Fix sign error in display matrix auto-rotation code
This makes the sample from Ticket4560 behave consistently with either branch Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index db89256..6e7a0bb 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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);
OpenPOWER on IntegriCloud