From 6b834a58bdef976383cff6e2a83f353e668a9cf1 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:08:28 -0700 Subject: zlib 0.93 --- trees.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'trees.c') diff --git a/trees.c b/trees.c index f85716e..4c7c136 100644 --- a/trees.c +++ b/trees.c @@ -738,6 +738,17 @@ void ct_stored_block(s, buf, stored_len, eof) copy_block(s, buf, (unsigned)stored_len, 1); /* with header */ } +/* =========================================================================== + * Send one empty static block to give enough lookahead for inflate + */ +void ct_align(s) + deflate_state *s; +{ + send_bits(s, STATIC_TREES<<1, 3); + send_code(s, END_BLOCK, static_ltree); + s->compressed_len += 10L; /* 3 for block type, 7 for EOB */ +} + /* =========================================================================== * Determine the best encoding for the current block: dynamic trees, static * trees or store, and output the encoded block to the zip file. This function -- cgit v1.2.3-55-g6feb