One more correction for deflateUsed() bits in stored case.

This commit is contained in:
Mark Adler 2024-07-05 23:02:36 -05:00
parent 884e0c0809
commit 3adaa095a7
1 changed files with 2 additions and 0 deletions

View File

@ -1809,6 +1809,8 @@ local block_state deflate_stored(deflate_state *s, int flush) {
}
/* We've done all we can with the available input and output. */
if (last)
s->bi_used = 8;
return last ? finish_started : need_more;
}