diff options
author | Jia Tan <jiat0218@gmail.com> | 2022-05-05 20:53:42 +0800 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-24 01:07:32 +0200 |
commit | 75f1a6c26df4ce329da0882786403e3ccf5cd898 (patch) | |
tree | 90da857417efe003de5b64980d0082685bcc5ba3 /src/liblzma | |
parent | liblzma: Add new API function lzma_filters_free(). (diff) | |
download | xz-75f1a6c26df4ce329da0882786403e3ccf5cd898.tar.xz |
liblzma: Add support for LZMA_SYNC_FLUSH in the Block encoder.
The documentation mentions that lzma_block_encoder() supports
LZMA_SYNC_FLUSH but it was never added to supported_actions[]
in the internal structure. Because of this, LZMA_SYNC_FLUSH could
not be used with the Block encoder unless it was the next coder
after something like stream_encoder() or stream_encoder_mt().
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/block_encoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/common/block_encoder.c b/src/liblzma/common/block_encoder.c index 168846ad..520ecc5a 100644 --- a/src/liblzma/common/block_encoder.c +++ b/src/liblzma/common/block_encoder.c @@ -217,6 +217,7 @@ lzma_block_encoder(lzma_stream *strm, lzma_block *block) lzma_next_strm_init(lzma_block_encoder_init, strm, block); strm->internal->supported_actions[LZMA_RUN] = true; + strm->internal->supported_actions[LZMA_SYNC_FLUSH] = true; strm->internal->supported_actions[LZMA_FINISH] = true; return LZMA_OK; |