From 24145c886920f6c01e87015cfc02c994d4d2452b Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 17 Jun 2011 22:45:03 -0500 Subject: [PATCH] [devel] Still trying to fix row buffer problem but pngvalid still fails --- pngrtran.c | 4 ++++ 1 file changed, 4 insertions(+) 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