mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Don't call png_icc_set_sRGB() when it's not compiled.
This commit is contained in:
parent
4b846be113
commit
86a3c4fb14
@ -1318,12 +1318,12 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr)
|
|||||||
png_crc_finish(png_ptr, length);
|
png_crc_finish(png_ptr, length);
|
||||||
finished = 1;
|
finished = 1;
|
||||||
|
|
||||||
# ifdef PNG_sRGB_SUPPORTED
|
# if defined(PNG_sRGB_SUPPORTED) && PNG_sRGB_PROFILE_CHECKS >= 0
|
||||||
/* Check for a match against sRGB */
|
/* Check for a match against sRGB */
|
||||||
png_icc_set_sRGB(png_ptr,
|
png_icc_set_sRGB(png_ptr,
|
||||||
&png_ptr->colorspace, profile,
|
&png_ptr->colorspace, profile,
|
||||||
png_ptr->zstream.adler);
|
png_ptr->zstream.adler);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Steal the profile for info_ptr. */
|
/* Steal the profile for info_ptr. */
|
||||||
if (info_ptr != NULL)
|
if (info_ptr != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user