[libpng17] Imported from libpng-1.7.0beta61.tar

This commit is contained in:
Glenn Randers-Pehrson
2015-05-30 22:13:19 -05:00
parent 689b9c58fe
commit e0fea61cd8
19 changed files with 72 additions and 54 deletions

View File

@@ -2841,7 +2841,7 @@ png_write_find_filter(png_structrp png_ptr, png_row_infop row_info)
for (j = 0; j < num_p_filters; j++)
{
if (png_ptr->prev_filters[j] == PNG_FILTER_VALUE_NONE)
if (png_ptr->prev_filters[j] == PNG_FILTER_VALUE_AVG)
{
sumlo = (sumlo * png_ptr->filter_weights[j]) >>
PNG_WEIGHT_SHIFT;