commit | c5bef946b1c247f22768eded4525cc872976653a | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Thu May 05 17:35:39 2011 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Thu May 05 17:35:39 2011 -0500 |
tree | c9b07b2ffbe15a7f5f9b469a51993ddf45b9eb63 | |
parent | c559bb58ed25ae0d6b732283afeaabb36e4b430f [diff] |
[devel] IDAT compression failed if preceded by a compressed text chunk This was because the attempt to reset the zlib stream in png_write_IDAT happened after the first IDAT chunk had been deflated - much too late. In this change internal functions are added to claim/release the z_stream and, hopefully, make the code more robust. Also deflateEnd checking is added - previously libpng would ignore an error at the end of the stream.