diff --git a/examples/gif2webp.c b/examples/gif2webp.c index b6a9964b..8c0a5851 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -359,6 +359,8 @@ int main(int argc, const char *argv[]) { if (DGifGetExtension(gif, &extension, &data) == GIF_ERROR) { goto End; } + if (data == NULL) continue; + switch (extension) { case COMMENT_EXT_FUNC_CODE: { break; // Do nothing for now.