diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-19 13:55:06 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-19 13:55:06 +0000 |
commit | 893c7c14c9ff58ecfd2d370e20e15eac6da779db (patch) | |
tree | 8574fbf355523c04479c82ea79e50602219a3184 | |
parent | c240b835fe6e3774237b6d968ddb405c8085690f (diff) | |
download | libnsgif-893c7c14c9ff58ecfd2d370e20e15eac6da779db.tar.gz |
GIF: Initilisation: Make frame initialisation loop more readable.
-rw-r--r-- | src/libnsgif.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libnsgif.c b/src/libnsgif.c index 457ce00..3e11dde 100644 --- a/src/libnsgif.c +++ b/src/libnsgif.c @@ -1319,7 +1319,9 @@ gif_result gif_initialise(gif_animation *gif, size_t size, const uint8_t *data) } /* Repeatedly try to initialise frames */ - while ((ret = gif__process_frame(gif, gif->frame_count, false)) == GIF_WORKING); + do { + ret = gif__process_frame(gif, gif->frame_count, false); + } while (ret == GIF_WORKING); return ret; } |