mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Still trying to fix row buffer problem but pngvalid still fails
This commit is contained in:
parent
e6a8060a71
commit
24145c8869
@ -1882,7 +1882,11 @@ png_read_transform_info(png_structp png_ptr, png_infop info_ptr)
|
|||||||
if (info_ptr->bit_depth == 16)
|
if (info_ptr->bit_depth == 16)
|
||||||
{
|
{
|
||||||
if (!(png_ptr->transformations & PNG_SCALE_16_TO_8))
|
if (!(png_ptr->transformations & PNG_SCALE_16_TO_8))
|
||||||
|
#if PNG_READ_STRIP_16_TO_8_SUPPORTED
|
||||||
png_ptr->transformations |=PNG_16_TO_8;
|
png_ptr->transformations |=PNG_16_TO_8;
|
||||||
|
#else
|
||||||
|
png_ptr->transformations |=PNG_SCALE_16_TO_8;
|
||||||
|
#endif
|
||||||
info_ptr->bit_depth = 8;
|
info_ptr->bit_depth = 8;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user