summaryrefslogtreecommitdiff
path: root/test/decode_gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/decode_gif.c')
-rw-r--r--test/decode_gif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/decode_gif.c b/test/decode_gif.c
index 619be29..64387ef 100644
--- a/test/decode_gif.c
+++ b/test/decode_gif.c
@@ -161,6 +161,10 @@ static void write_ppm(FILE* fh, const char *name, gif_animation *gif,
if (code != GIF_OK)
warning("gif_decode_frame", code);
+ if (!gif->frames[i].display) {
+ continue;
+ }
+
if (!no_write) {
fprintf(fh, "# frame %u:\n", i);
image = (unsigned char *) gif->frame_image;