[libpng16] Fixed old cut&paste bug in the weighted filter selection code in
pngwutil.c, introduced in libpng-0.95, March 1997.
This commit is contained in:
parent
b66de48b3b
commit
1088f4925f
2
ANNOUNCE
2
ANNOUNCE
@ -59,6 +59,8 @@ Version 1.6.18beta05 [May 31, 2015]
|
|||||||
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
|
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
|
||||||
Changed png_voidcast(), etc., to voidcast(), etc., in contrib/tools/pngfix.c
|
Changed png_voidcast(), etc., to voidcast(), etc., in contrib/tools/pngfix.c
|
||||||
to avoid confusion with the libpng private macros.
|
to avoid confusion with the libpng private macros.
|
||||||
|
Fixed old cut&paste bug in the weighted filter selection code in
|
||||||
|
pngwutil.c, introduced in libpng-0.95, March 1997.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
2
CHANGES
2
CHANGES
@ -5244,6 +5244,8 @@ Version 1.6.18beta05 [May 31, 2015]
|
|||||||
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
|
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
|
||||||
Changed png_voidcast(), etc., to voidcast(), etc., in contrib/tools/pngfix.c
|
Changed png_voidcast(), etc., to voidcast(), etc., in contrib/tools/pngfix.c
|
||||||
to avoid confusion with the libpng private macros.
|
to avoid confusion with the libpng private macros.
|
||||||
|
Fixed old cut&paste bug in the weighted filter selection code in
|
||||||
|
pngwutil.c, introduced in libpng-0.95, March 1997.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwutil.c - utilities to write a PNG file
|
/* pngwutil.c - utilities to write a PNG file
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.6.17 [March 26, 2015]
|
* Last changed in libpng 1.6.18 [(PENDING RELEASE)]
|
||||||
* Copyright (c) 1998-2015 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2015 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -2814,7 +2814,7 @@ png_write_find_filter(png_structrp png_ptr, png_row_infop row_info)
|
|||||||
|
|
||||||
for (j = 0; j < num_p_filters; j++)
|
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]) >>
|
sumlo = (sumlo * png_ptr->filter_weights[j]) >>
|
||||||
PNG_WEIGHT_SHIFT;
|
PNG_WEIGHT_SHIFT;
|
||||||
|
Loading…
Reference in New Issue
Block a user