[FFmpeg-cvslog] cmdutils: Fix sign error in display matrix auto-rotation code

Michael Niedermayer git at videolan.org
Mon May 18 02:18:43 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 18 01:11:02 2015 +0200| [66f4b1e9c4a4158d810e5905bf742e1bcc443130] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66f4b1e9c4a4158d810e5905bf742e1bcc443130
---

 cmdutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 



More information about the ffmpeg-cvslog mailing list