[libpng15] Improved the efficiency of the new png_check_palette_indexes()

function.
This commit is contained in:
Glenn Randers-Pehrson
2012-06-06 13:04:47 -05:00
parent d5d0bd91d2
commit c924d3dd25
5 changed files with 10 additions and 6 deletions

View File

@@ -708,7 +708,7 @@ png_do_check_palette_indexes(png_structp png_ptr, png_row_infop row_info)
{
for (; rp > png_ptr->row_buf; rp--)
{
if (*rp >= png_ptr->num_palette_max)
if (*rp > png_ptr->num_palette_max)
png_ptr->num_palette_max = (int) *rp;
}