Commit f53e858b authored by Francois Cartegnie's avatar Francois Cartegnie

demux: avformat: rotate clockwise.

No code comments: no clue. But mp4 needs clockwise.
parent 1ce783da
...@@ -345,13 +345,13 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -345,13 +345,13 @@ int OpenDemux( vlc_object_t *p_this )
long angle = strtol(rotation->value, NULL, 10); long angle = strtol(rotation->value, NULL, 10);
if (angle > 45 && angle < 135) if (angle > 45 && angle < 135)
fmt.video.orientation = ORIENT_ROTATED_270; fmt.video.orientation = ORIENT_ROTATED_90;
else if (angle > 135 && angle < 225) else if (angle > 135 && angle < 225)
fmt.video.orientation = ORIENT_ROTATED_180; fmt.video.orientation = ORIENT_ROTATED_180;
else if (angle > 225 && angle < 315) else if (angle > 225 && angle < 315)
fmt.video.orientation = ORIENT_ROTATED_90; fmt.video.orientation = ORIENT_ROTATED_270;
else else
fmt.video.orientation = ORIENT_NORMAL; fmt.video.orientation = ORIENT_NORMAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment