提交 8500b772 编写于 作者: G Glenn Randers-Pehrson

[libpng15] Also allow uncompressed iTXt

上级 e7ad104a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册