]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Don't need to emit an empty fixed block when changing parameters.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 3 Dec 2016 16:29:57 +0000 (08:29 -0800)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 6 Feb 2017 12:07:40 +0000 (13:07 +0100)
commit8fbe9792d3d5e87c33dacb4cc52d57ec0f8de3d6
treef778c2244ddc433961b5d9f2a71bc24673ed7b90
parent867e98156585407acd4b5fd78ce6f0b174bced8e
Don't need to emit an empty fixed block when changing parameters.

gzsetparams() was using Z_PARTIAL_FLUSH when it could use Z_BLOCK
instead. This commit uses Z_BLOCK, which avoids emitting an
unnecessary ten bits into the stream.
gzwrite.c