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) {
/* coordinate accounting */
total_pixels -= size;
while (size) {
if (x + size >= width) {
y++;
size -= (width - x);
x = 0;
} else {
x += size;
size = 0;
}
}
y += (x + size) / width;
x = (x + size) % width;
}
}
......
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