[vlc-commits] demux: avformat: rotate clockwise.

Francois Cartegnie git at videolan.org
Fri May 2 22:12:37 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May  2 22:10:55 2014 +0200| [f53e858b9d1aab63ec059f5b12bbe631c0791481] | committer: Francois Cartegnie

demux: avformat: rotate clockwise.

No code comments: no clue. But mp4 needs clockwise.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f53e858b9d1aab63ec059f5b12bbe631c0791481
---

 modules/demux/avformat/demux.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 92fcbc0..9eebac6 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -345,13 +345,13 @@ int OpenDemux( vlc_object_t *p_this )
                 long angle = strtol(rotation->value, NULL, 10);
 
                 if (angle > 45 && angle < 135)
-                    fmt.video.orientation = ORIENT_ROTATED_270;
+                    fmt.video.orientation = ORIENT_ROTATED_90;
 
                 else if (angle > 135 && angle < 225)
                     fmt.video.orientation = ORIENT_ROTATED_180;
 
                 else if (angle > 225 && angle < 315)
-                    fmt.video.orientation = ORIENT_ROTATED_90;
+                    fmt.video.orientation = ORIENT_ROTATED_270;
 
                 else
                     fmt.video.orientation = ORIENT_NORMAL;



More information about the vlc-commits mailing list