[libpng17] Conditionally compile png_set_benign_errors() in pngread.c

This commit is contained in:
Glenn Randers-Pehrson
2016-09-11 19:33:34 -05:00
parent 07e2cf117f
commit 6f39846891
3 changed files with 7 additions and 3 deletions

View File

@@ -1131,7 +1131,9 @@ png_image_read_header(png_voidp argument)
png_structrp png_ptr = image->opaque->png_ptr;
png_inforp info_ptr = image->opaque->info_ptr;
#ifdef PNG_BENIGN_ERRORS_SUPPORTED
png_set_benign_errors(png_ptr, 1/*warn*/);
#endif
png_read_info(png_ptr, info_ptr);
/* Do this the fast way; just read directly out of png_struct. */