Imported from libpng-1.2.17rc4.tar

This commit is contained in:
Glenn Randers-Pehrson
2007-05-11 23:12:12 -05:00
parent 999bceb413
commit 3832ab1c21
49 changed files with 125 additions and 114 deletions

View File

@@ -1,7 +1,7 @@
/* pngpread.c - read a png file in push mode
*
* Last changed in libpng 1.2.17 May 9, 2007
* Last changed in libpng 1.2.17 May 12, 2007
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -1516,10 +1516,13 @@ png_push_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32
if(png_handle_as_unknown(png_ptr, png_ptr->chunk_name) !=
PNG_HANDLE_CHUNK_ALWAYS)
png_chunk_error(png_ptr, "unknown critical chunk");
png_set_unknown_chunks(png_ptr, info_ptr,
&png_ptr->unknown_chunk, 1);
}
}
#endif
#else
png_set_unknown_chunks(png_ptr, info_ptr, &png_ptr->unknown_chunk, 1);
#endif
png_free(png_ptr, png_ptr->unknown_chunk.data);
png_ptr->unknown_chunk.data = NULL;
}