Use 0 (not 1) num_animation_loops for still GIFs

For example, the crc32 checksums in test/nia-checksums-of-data.txt for
test/data/pjw-thumbnail.{bmp,gif,png} now all match.
This commit is contained in:
Nigel Tao committed 2021-11-23 15:06:55 +11:00
1 parent 8bd52a8791
commit ac4d3e6420
4 files changed
+44 -22

No files matched your search

+4 -1
View File
@@ -29298,7 +29298,10 @@ wuffs_gif__decoder__num_animation_loops(
if (self->private_impl.f_seen_num_animation_loops_value) {
return self->private_impl.f_num_animation_loops_value;
}
return 1;
if (self->private_impl.f_num_decoded_frame_configs_value > 1) {
return 1;
}
return 0;
}
// -------- func gif.decoder.num_decoded_frame_configs