diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 18:20:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 18:20:33 +0200 |
commit | 218394958c7683f892275bb40eae880620feebcc (patch) | |
tree | d21f20359b49097fde9e13f34dcb3c0d2bee51e5 /src/liblzma/lz/lz_decoder.c | |
parent | liblzma: Remove two FIXME comments. (diff) | |
download | xz-218394958c7683f892275bb40eae880620feebcc.tar.xz |
liblzma: Pass the Filter ID to LZ encoder and decoder.
This allows using two Filter IDs with the same
initialization function and data structures.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/lz/lz_decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/lz/lz_decoder.c b/src/liblzma/lz/lz_decoder.c index ab6af0dd..4a62db76 100644 --- a/src/liblzma/lz/lz_decoder.c +++ b/src/liblzma/lz/lz_decoder.c @@ -212,7 +212,8 @@ extern lzma_ret lzma_lz_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, lzma_ret (*lz_init)(lzma_lz_decoder *lz, - const lzma_allocator *allocator, const void *options, + const lzma_allocator *allocator, + lzma_vli id, const void *options, lzma_lz_options *lz_options)) { // Allocate the base structure if it isn't already allocated. @@ -236,7 +237,7 @@ lzma_lz_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, // us the dictionary size. lzma_lz_options lz_options; return_if_error(lz_init(&coder->lz, allocator, - filters[0].options, &lz_options)); + filters[0].id, filters[0].options, &lz_options)); // If the dictionary size is very small, increase it to 4096 bytes. // This is to prevent constant wrapping of the dictionary, which |