[libpng10] Imported from libpng-1.0.29rc1.tar

This commit is contained in:
Glenn Randers-Pehrson
2007-09-25 19:42:17 -05:00
parent 02f800dbd6
commit 43a349ae4a
54 changed files with 182 additions and 161 deletions

View File

@@ -415,7 +415,7 @@ png_read_info(png_structp png_ptr, png_infop info_ptr)
/* This should be a binary subdivision search or a hash for
* matching the chunk name rather than a linear search.
*/
if (!png_memcmp(png_ptr->chunk_name, (png_bytep)png_IDAT, 4))
if (!png_memcmp(png_ptr->chunk_name, png_IDAT, 4))
if(png_ptr->mode & PNG_AFTER_IDAT)
png_ptr->mode |= PNG_HAVE_CHUNK_AFTER_IDAT;