dwebp: warn when decoding animated webp's

the decode will fail; provide a bit more background info

Change-Id: Iecccb09cf0fa9f8c1c3e87636a55e1f251dee023
This commit is contained in:
James Zern 2013-03-20 13:05:04 -07:00
parent 302efcdb41
commit a788644f93

View File

@ -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