From b95a10c2dd9d73d13375de1c802c2124478f6d88 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Mar 2016 11:47:16 +0200 Subject: vo_opengl: fix rotation direction The recent changes fixed rotation handling, but reversed the rotation direction. The direction is expected to be counter-clockwise, because demuxers export video rotation metadata as such. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 2c1b3f1ce5..de9fdd2814 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1763,7 +1763,7 @@ static void compute_src_transform(struct gl_video *p, struct gl_transform *tr) int a = p->image_params.rotate % 90 ? 0 : p->image_params.rotate / 90; int sin90[4] = {0, 1, 0, -1}; // just to avoid rounding issues etc. int cos90[4] = {1, 0, -1, 0}; - struct gl_transform rot = {{{cos90[a], -sin90[a]}, {sin90[a], cos90[a]}}}; + struct gl_transform rot = {{{cos90[a], sin90[a]}, {-sin90[a], cos90[a]}}}; gl_transform_trans(rot, &transform); // basically, recenter to keep the whole image in view -- cgit v1.2.3