[libpng16] Imported from libpng-1.6.0beta18.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-03-16 07:33:38 -05:00
parent aa816c4444
commit dd6ecbe688
13 changed files with 32 additions and 26 deletions

View File

@@ -1328,6 +1328,12 @@ png_set_benign_errors(png_structrp png_ptr, int allowed)
{
png_debug(1, "in png_set_benign_errors");
/* If allowed is 1, png_benign_error() is treated as a warning.
*
* If allowed is 0, png_benign_error() is treated as an error (which
* is the default behavior if png_set_benign_errors() is not called).
*/
if (allowed)
png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN;