[MPlayer-cvslog] r21114 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Mon Nov 20 18:13:19 CET 2006


Author: eugeni
Date: Mon Nov 20 18:13:19 2006
New Revision: 21114

Modified:
   trunk/libass/ass_render.c

Log:
Cosmetics: remove unneeded curly brackets.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Mon Nov 20 18:13:19 2006
@@ -2082,19 +2082,18 @@
 	int i;
 	int shift = 0;
 
-	if (dir == 1) { // move down
+	if (dir == 1) // move down
 		for (i = 0; i < *cnt; ++i) {
 			if (s->b + shift <= fixed[i].a || s->a + shift >= fixed[i].b)
 				continue;
 			shift = fixed[i].b - s->a;
 		}
-	} else { // dir == -1, move up
+	else // dir == -1, move up
 		for (i = *cnt-1; i >= 0; --i) {
 			if (s->b + shift <= fixed[i].a || s->a + shift >= fixed[i].b)
 				continue;
 			shift = fixed[i].a - s->b;
 		}
-	}
 
 	fixed[*cnt].a = s->a + shift;
 	fixed[*cnt].b = s->b + shift;



More information about the MPlayer-cvslog mailing list