[libpng16] Imported from libpng-1.6.0beta20.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-03-29 06:15:55 -05:00
parent 58f277c18e
commit 96027d919f
17 changed files with 54 additions and 43 deletions

View File

@@ -417,6 +417,8 @@ write_png(FILE *fp, int color_type, int bit_depth,
return 1;
}
/* Allow benign errors so that we can write PNGs with errors */
png_set_benign_errors(png_ptr, 1/*allowed*/);
png_init_io(png_ptr, fp);
info_ptr = png_create_info_struct(png_ptr);