summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-10-27 22:50:43 -0700
committerMark Adler <madler@alumni.caltech.edu>2016-10-27 22:50:43 -0700
commit94575859cf7f657f0f31aff4c50761fe3f182699 (patch)
tree8853a8bc185895a739435457f0e9737c3a50da67 /examples
parentbedea2483b6cf0f5af0f50010031bb56f5512124 (diff)
downloadzlib-94575859cf7f657f0f31aff4c50761fe3f182699.tar.gz
Fix bug when level 0 used with Z_HUFFMAN or Z_RLE.
Compression level 0 requests no compression, using only stored blocks. When Z_HUFFMAN or Z_RLE was used with level 0 (granted, an odd choice, but permitted), the resulting blocks were mostly fixed or dynamic. The reason is that deflate_stored() was not being called in that case. The compressed data was valid, but it was not what the application requested. This commit assures that only stored blocks are emitted for compression level 0, regardless of the strategy selected.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions