From: eugeni Date: Mon, 20 Nov 2006 17:13:19 +0000 (+0000) Subject: Cosmetics: remove unneeded curly brackets. X-Git-Tag: 0.9.7~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b7a47225389d08446b0be26bdbffd7e9d1e8fda;p=libass Cosmetics: remove unneeded curly brackets. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21114 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index cddda29..ea32c71 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2082,19 +2082,18 @@ static int fit_segment(segment_t* s, segment_t* fixed, int* cnt, int dir) 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;