[libpng16] Guard usage of png_ptr->options with #ifdef PNG_SET_OPTION_SUPPORTED.
This commit is contained in:
parent
bcd3209a42
commit
3669467347
1
ANNOUNCE
1
ANNOUNCE
@ -26,6 +26,7 @@ Other information:
|
|||||||
Changes since the last public release (1.6.13):
|
Changes since the last public release (1.6.13):
|
||||||
|
|
||||||
Version 1.6.14beta01 [August 21, 2014]
|
Version 1.6.14beta01 [August 21, 2014]
|
||||||
|
Guard usage of png_ptr->options with #ifdef PNG_SET_OPTION_SUPPORTED.
|
||||||
|
|
||||||
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
CHANGES
1
CHANGES
@ -4979,6 +4979,7 @@ Version 1.6.13 [August 21, 2014]
|
|||||||
No changes.
|
No changes.
|
||||||
|
|
||||||
Version 1.6.14beta01 [August 21, 2014]
|
Version 1.6.14beta01 [August 21, 2014]
|
||||||
|
Guard usage of png_ptr->options with #ifdef PNG_SET_OPTION_SUPPORTED.
|
||||||
|
|
||||||
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
png.c
2
png.c
@ -2219,10 +2219,12 @@ png_compare_ICC_profile_with_sRGB(png_const_structrp png_ptr,
|
|||||||
#endif
|
#endif
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
#ifdef PNG_SET_OPTION_SUPPORTED
|
||||||
/* First see if PNG_SKIP_sRGB_CHECK_PROFILE has been set to "on" */
|
/* First see if PNG_SKIP_sRGB_CHECK_PROFILE has been set to "on" */
|
||||||
if (((png_ptr->options >> PNG_SKIP_sRGB_CHECK_PROFILE) & 3) ==
|
if (((png_ptr->options >> PNG_SKIP_sRGB_CHECK_PROFILE) & 3) ==
|
||||||
PNG_OPTION_ON)
|
PNG_OPTION_ON)
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i=0; i < (sizeof png_sRGB_checks) / (sizeof png_sRGB_checks[0]); ++i)
|
for (i=0; i < (sizeof png_sRGB_checks) / (sizeof png_sRGB_checks[0]); ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user