diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2011-06-17 22:45:03 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2011-06-17 22:45:03 -0500 |
commit | 24145c886920f6c01e87015cfc02c994d4d2452b (patch) | |
tree | 5f675c15bfdc1ba6d7390afa4956a20002843f2c /pngrtran.c | |
parent | e6a8060a7188b54491e4922d9c848760d8a29ba8 (diff) | |
download | libpng-24145c886920f6c01e87015cfc02c994d4d2452b.tar.gz |
[devel] Still trying to fix row buffer problem but pngvalid still fails
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pngrtran.c b/pngrtran.c index a3566a057..0fca5dd51 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -1882,7 +1882,11 @@ png_read_transform_info(png_structp png_ptr, png_infop info_ptr) if (info_ptr->bit_depth == 16) { if (!(png_ptr->transformations & PNG_SCALE_16_TO_8)) +#if PNG_READ_STRIP_16_TO_8_SUPPORTED png_ptr->transformations |=PNG_16_TO_8; +#else + png_ptr->transformations |=PNG_SCALE_16_TO_8; +#endif info_ptr->bit_depth = 8; } #endif |