summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-05-08 16:37:40 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-05-08 16:37:40 +0100
commita1c436270011cb3770f3d74bf08347289feb1273 (patch)
treeb5cf2d13d650c0e8665a65dee85695793ba71315
parent03a6a3a8a7b2481e7357a2563be30a98c174f5bb (diff)
downloadlibnsgif-a1c436270011cb3770f3d74bf08347289feb1273.tar.gz
libnsgif-a1c436270011cb3770f3d74bf08347289feb1273.tar.bz2
Test: Ensure we can still loop GIFs with a loop count limit.
-rw-r--r--test/nsgif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nsgif.c b/test/nsgif.c
index 6abd985..4a9e31c 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -391,6 +391,9 @@ int main(int argc, char *argv[])
for (uint64_t i = 0; i < nsgif_options.loops; i++) {
decode(ppm, nsgif_options.file, gif, i == 0);
+
+ /* We want to ignore any loop limit in the GIF. */
+ nsgif_reset(gif);
}
if (ppm != NULL) {