0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Cosmetics: remove unneeded curly brackets.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21114 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-11-20 17:13:19 +00:00
parent 852e37033b
commit bec3287bd4

View 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;