Write out all of the available bits when using Z_BLOCK.
authorMark Adler <madler@alumni.caltech.edu>
Thu, 29 Dec 2011 21:19:27 +0000 (13:19 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 7 Jan 2012 22:08:02 +0000 (14:08 -0800)
commit0b828b4aa6c962ab46eae624578d77b35395b2c1
tree6c61daa3f02cd938d5f2434a3c3be2998866a43d
parent8f5eceefe8b384d7c18813519cb337efef21a0f3
Write out all of the available bits when using Z_BLOCK.

Previously, the bit buffer would hold 1 to 16 bits after "all" of the
output is provided after a Z_BLOCK deflate() call.  Now at most seven
bits remain in the output buffer after Z_BLOCK.  flush_pending() now
flushes the bit buffer before copying out the byte buffer, in order
for it to really flush as much as possible.
deflate.c
deflate.h
trees.c