mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 02:33:04 +00:00
Use / and % operators instead of reimplementing them with a loop.
Originally committed as revision 18597 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b1e309865f
commit
977d813447
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user