Commit 977d8134 authored by Reimar Döffinger's avatar Reimar Döffinger

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

Originally committed as revision 18597 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b1e30986
......@@ -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