[libpng16] Imported from libpng-1.6.16rc02.tar

This commit is contained in:
Glenn Randers-Pehrson
2014-12-21 13:51:44 -06:00
parent 6d8c88177a
commit 06ee38423b
25 changed files with 62 additions and 57 deletions

View File

@@ -854,13 +854,12 @@ png_handle_IHDR(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
/* Set up other useful info */
png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels);
png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width);
png_debug1(3, "bit_depth = %d", png_ptr->bit_depth);
png_debug1(3, "channels = %d", png_ptr->channels);
png_debug1(3, "rowbytes = %lu", (unsigned long)png_ptr->rowbytes);
png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth,
color_type, interlace_type, compression_type, filter_type);
png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width);
png_debug1(3, "rowbytes = %lu", (unsigned long)png_ptr->rowbytes);
}
/* Read and check the palette */