aboutsummaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-01-07 11:00:37 -0800
committerMark Adler <madler@alumni.caltech.edu>2012-01-07 14:03:07 -0800
commit8f5eceefe8b384d7c18813519cb337efef21a0f3 (patch)
treeb78f56b0a617615a378f14742e0484ebaa29226c /deflate.h
parent263b1a05b04e442896d7941f87d022a2f35a9220 (diff)
downloadzlib-8f5eceefe8b384d7c18813519cb337efef21a0f3.tar.gz
zlib-8f5eceefe8b384d7c18813519cb337efef21a0f3.tar.bz2
zlib-8f5eceefe8b384d7c18813519cb337efef21a0f3.zip
Remove second empty static block for Z_PARTIAL_FLUSH.
Z_PARTIAL_FLUSH would sometimes emit two empty static blocks instead of one in order to provide enough lookahead for inflate to be able to decode what was last compressed. inflate no longer needs that much lookahead, so this removes the possibility of emitting the second empty static block. Z_PARTIAL_FLUSH will now emit only one empty static block.
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/deflate.h b/deflate.h
index 9284329..3590e4d 100644
--- a/deflate.h
+++ b/deflate.h
@@ -247,7 +247,6 @@ typedef struct internal_state {
247 ulg opt_len; /* bit length of current block with optimal trees */ 247 ulg opt_len; /* bit length of current block with optimal trees */
248 ulg static_len; /* bit length of current block with static trees */ 248 ulg static_len; /* bit length of current block with static trees */
249 uInt matches; /* number of string matches in current block */ 249 uInt matches; /* number of string matches in current block */
250 int last_eob_len; /* bit length of EOB code for last block */
251 250
252#ifdef DEBUG 251#ifdef DEBUG
253 ulg compressed_len; /* total bit length of compressed file mod 2^32 */ 252 ulg compressed_len; /* total bit length of compressed file mod 2^32 */