From a788644f93363b4f176ef1ec4c736763d42d8fe2 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 20 Mar 2013 13:05:04 -0700 Subject: [PATCH] dwebp: warn when decoding animated webp's the decode will fail; provide a bit more background info Change-Id: Iecccb09cf0fa9f8c1c3e87636a55e1f251dee023 --- examples/dwebp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/dwebp.c b/examples/dwebp.c index d66a1069..a3dc615e 100644 --- a/examples/dwebp.c +++ b/examples/dwebp.c @@ -460,6 +460,13 @@ int main(int argc, const char *argv[]) { goto end; } + if (bitstream->has_animation) { + fprintf(stderr, + "Error! Decoding of an animated WebP file is not supported.\n" + " Use webpmux to extract the individual frames or\n" + " vwebp to view this image.\n"); + } + switch (format) { case PNG: #ifdef HAVE_WINCODEC_H