diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:08:28 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:08:28 -0700 |
commit | 6b834a58bdef976383cff6e2a83f353e668a9cf1 (patch) | |
tree | 5527def57f9d6eac4f3e709c10b9fd89905f2445 /trees.c | |
parent | bdde4e09d21edff02ea5093b7f6eccbf166b272f (diff) | |
download | zlib-0.93.tar.gz zlib-0.93.tar.bz2 zlib-0.93.zip |
zlib 0.93v0.93
Diffstat (limited to '')
-rw-r--r-- | trees.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -739,6 +739,17 @@ void ct_stored_block(s, buf, stored_len, eof) | |||
739 | } | 739 | } |
740 | 740 | ||
741 | /* =========================================================================== | 741 | /* =========================================================================== |
742 | * Send one empty static block to give enough lookahead for inflate | ||
743 | */ | ||
744 | void ct_align(s) | ||
745 | deflate_state *s; | ||
746 | { | ||
747 | send_bits(s, STATIC_TREES<<1, 3); | ||
748 | send_code(s, END_BLOCK, static_ltree); | ||
749 | s->compressed_len += 10L; /* 3 for block type, 7 for EOB */ | ||
750 | } | ||
751 | |||
752 | /* =========================================================================== | ||
742 | * Determine the best encoding for the current block: dynamic trees, static | 753 | * Determine the best encoding for the current block: dynamic trees, static |
743 | * trees or store, and output the encoded block to the zip file. This function | 754 | * trees or store, and output the encoded block to the zip file. This function |
744 | * returns the total compressed length for the file so far. | 755 | * returns the total compressed length for the file so far. |