pngdec: output error messages from libpng

Change-Id: I1981562eeab2ad07eb797cea589a033943e7f21d
This commit is contained in:
James Zern 2013-07-09 17:33:21 -07:00
parent e84c625d92
commit a34a502989

View File

@ -26,8 +26,8 @@
#include "webp/encode.h"
#include "./metadata.h"
static void PNGAPI error_function(png_structp png, png_const_charp dummy) {
(void)dummy; // remove variable-unused warning
static void PNGAPI error_function(png_structp png, png_const_charp error) {
if (error != NULL) fprintf(stderr, "libpng error: %s\n", error);
longjmp(png_jmpbuf(png), 1);
}