mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Remove whitespace at end of lines
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
a0ddf0b5f2
commit
6f237b6bf0
@@ -744,6 +744,14 @@ png_read_end(png_structrp png_ptr, png_inforp info_ptr)
|
||||
|
||||
png_crc_finish(png_ptr, 0); /* Finish off CRC from last IDAT chunk */
|
||||
|
||||
#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
|
||||
/* Report invalid palette index; added at libng-1.5.10 */
|
||||
if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
|
||||
png_ptr->num_palette_max > png_ptr->num_palette)
|
||||
png_warning(png_ptr, "palette index exceeded num_palette; "
|
||||
"pixel(s) rendered opaque black");
|
||||
#endif
|
||||
|
||||
do
|
||||
{
|
||||
png_uint_32 length = png_read_chunk_header(png_ptr);
|
||||
|
||||
Reference in New Issue
Block a user