[libng15] Issue a png_benign_error() instead of png_warning() about bad palette

index.
This commit is contained in:
Glenn Randers-Pehrson
2012-03-10 08:14:49 -06:00
parent 0ff5150f91
commit 1ca16d92f2
6 changed files with 12 additions and 6 deletions

View File

@@ -307,7 +307,7 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
#ifdef PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED
if (png_ptr->num_palette_max > png_ptr->num_palette)
png_warning(png_ptr, "Wrote palette index exceeding num_palette");
png_benign_error(png_ptr, "Wrote palette index exceeding num_palette");
#endif
/* See if user wants us to write information chunks */