summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/nsgif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nsgif.c b/test/nsgif.c
index 796d34a..648d3d1 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -289,6 +289,10 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
+ if (nsgif_options.loops == 0) {
+ nsgif_options.loops = 1;
+ }
+
for (uint64_t i = 0; i < nsgif_options.loops; i++) {
decode((i == 0) ? ppm : NULL, nsgif_options.file, gif);
}