From a1c436270011cb3770f3d74bf08347289feb1273 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 8 May 2022 16:37:40 +0100 Subject: Test: Ensure we can still loop GIFs with a loop count limit. --- test/nsgif.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.1