aboutsummaryrefslogtreecommitdiff
path: root/infback.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-12-28 23:57:14 -0800
committerMark Adler <madler@alumni.caltech.edu>2011-12-28 23:57:14 -0800
commitf1ebdd6a9c495a5db9a22aa80dd7d54ae7db42e9 (patch)
treee6d279c19147fba9c2fa4118b9c9f2fe316e725f /infback.c
parentbafcad90289cb72993e32a5fe8f31c4e60629f9e (diff)
downloadzlib-f1ebdd6a9c495a5db9a22aa80dd7d54ae7db42e9.tar.gz
zlib-f1ebdd6a9c495a5db9a22aa80dd7d54ae7db42e9.tar.bz2
zlib-f1ebdd6a9c495a5db9a22aa80dd7d54ae7db42e9.zip
Permit stronger flushes after Z_BLOCK flushes.
The incorporation of the Z_BLOCK flush did not update the rejection of lower ranked flushes immediately after higher ranked flushes with no more input data. This prevented an empty Z_SYNC_FLUSH right after a Z_BLOCK flush, which would be desired to bring the deflate stream to a byte boundary conditionally on whether or not it was already at a byte boundary. This patch re-ranks Z_BLOCK above Z_NO_FLUSH but below Z_PARTIAL_FLUSH, allowing stronger empty flushes to follow a Z_BLOCK flush.
Diffstat (limited to 'infback.c')
0 files changed, 0 insertions, 0 deletions