[libpng16] Reduced scope of recently-added #ifdef block

(#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpread.c)
This commit is contained in:
Glenn Randers-Pehrson 2013-11-17 19:26:40 -06:00
parent 416bb9320f
commit 68dfa9e526

View File

@ -530,7 +530,6 @@ png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
}
#endif
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
else
{
if (png_ptr->push_length + 4 > png_ptr->buffer_size)
@ -538,10 +537,11 @@ png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
png_push_save_buffer(png_ptr);
return;
}
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
png_handle_unknown(png_ptr, info_ptr, png_ptr->push_length,
PNG_HANDLE_CHUNK_AS_DEFAULT);
}
#endif
}
png_ptr->mode &= ~PNG_HAVE_CHUNK_HEADER;
}