Commit 7d236ede authored by reimar's avatar reimar

Use / and % operators instead of reimplementing them with a loop.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18597 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f25f00f3
...@@ -351,16 +351,8 @@ static void xan_wc3_decode_frame(XanContext *s) { ...@@ -351,16 +351,8 @@ static void xan_wc3_decode_frame(XanContext *s) {
/* coordinate accounting */ /* coordinate accounting */
total_pixels -= size; total_pixels -= size;
while (size) { y += (x + size) / width;
if (x + size >= width) { x = (x + size) % width;
y++;
size -= (width - x);
x = 0;
} else {
x += size;
size = 0;
}
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment