diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-01-02 15:03:51 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-01-02 15:03:51 +0000 |
commit | 75d06e67ba1f1e96903b8d80ac3d0847687d2aba (patch) | |
tree | aa16e45bc14d6b0a9757bc55d13b2c84554e85ab /Build/source/texk/web2c/luatexdir/image | |
parent | fa4f992c25c38ef0dec164173d7b2665f72881d4 (diff) |
libpng 1.6.8
git-svn-id: svn://tug.org/texlive/trunk@32548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/image')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/image/writepng.w | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/image/writepng.w b/Build/source/texk/web2c/luatexdir/image/writepng.w index 57079f5c5fc..9447ed62ad3 100644 --- a/Build/source/texk/web2c/luatexdir/image/writepng.w +++ b/Build/source/texk/web2c/luatexdir/image/writepng.w @@ -67,6 +67,10 @@ void read_png_info(image_dict * idict, img_readtype_e readtype) img_png_info_ptr(idict) = info_p; if (setjmp(png_jmpbuf(png_p))) pdftex_fail("libpng: internal error"); +#if PNG_LIBPNG_VER >= 10603 + /* ignore possibly incorrect CMF bytes */ + png_set_option(png_p, PNG_MAXIMUM_INFLATE_WINDOW, PNG_OPTION_ON); +#endif png_init_io(png_p, img_file(idict)); png_read_info(png_p, info_p); /* resolution support */ |