[libpng16] 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:48:04 -06:00
parent 71db131882
commit 945cb1f9be
7 changed files with 9 additions and 5 deletions

View File

@@ -1343,7 +1343,7 @@ png_set_check_for_invalid_index(png_structrp png_ptr, int allowed)
{
png_debug(1, "in png_set_check_for_invalid_index");
if (allowed)
if (allowed > 0)
png_ptr->num_palette_max = 0;
else