[libpng15] Also allow uncompressed iTXt

This commit is contained in:
Glenn Randers-Pehrson 2011-11-22 11:40:39 -06:00
parent e7ad104ac3
commit 8500b7720b

View File

@ -2540,7 +2540,7 @@ png_handle_iTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
comp_type = *lang++;
}
if (comp_flag != PNG_TEXT_COMPRESSION_zTXt)
if (comp_flag && comp_flag != PNG_TEXT_COMPRESSION_zTXt)
{
png_warning(png_ptr, "Unknown iTXt compression type");
png_free(png_ptr, png_ptr->chunkdata);