mirror of https://github.com/madler/zlib.git
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.pull/176/head
parent
bedea2483b
commit
94575859cf
1 changed files with 4 additions and 3 deletions
Loading…
Reference in new issue