[libpng15] Imported from libpng-1.5.29beta01.tar

This commit is contained in:
Glenn Randers-Pehrson
2017-04-01 09:33:25 -05:00
parent ece1601032
commit 934593011b
19 changed files with 70 additions and 70 deletions

View File

@@ -1,8 +1,8 @@
/* pngvalid.c - validate libpng by constructing then reading png files.
*
* Last changed in libpng 1.6.27 [(PENDING RELEASE)]
* Copyright (c) 2014-2016 John Cunningham Bowler
* Last changed in libpng 1.6.29 [(PENDING RELEASE)]
* Copyright (c) 2014-2017 John Cunningham Bowler
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
@@ -7742,13 +7742,11 @@ image_transform_png_set_rgb_to_gray_ini(const image_transform *this,
* NOTE: this number only affects the internal limit check in pngvalid,
* it has no effect on the limits applied to the libpng values.
*/
that->pm->limit += pow(
# if DIGITIZE
2.0
# else
1.0
# endif
/255, data.gamma);
#if DIGITIZE
that->pm->limit += pow( 2.0/255, data.gamma);
#else
that->pm->limit += pow( 1.0/255, data.gamma);
#endif
}
}