[libpng15] Also allow uncompressed iTXt
This commit is contained in:
parent
e7ad104ac3
commit
8500b7720b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user