]> granicus.if.org Git - libass/commitdiff
Cosmetics: remove unneeded curly brackets.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 Nov 2006 17:13:19 +0000 (17:13 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 Nov 2006 17:13:19 +0000 (17:13 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21114 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index cddda29f7f8078e20b1b4a5e903d3141827a3609..ea32c71f7ed18bf5b9bc8cf37a9e7093c124aa53 100644 (file)
@@ -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;