From 218394958c7683f892275bb40eae880620feebcc Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 27 Nov 2022 18:20:33 +0200 Subject: liblzma: Pass the Filter ID to LZ encoder and decoder. This allows using two Filter IDs with the same initialization function and data structures. --- src/liblzma/common/alone_encoder.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/liblzma/common/alone_encoder.c') diff --git a/src/liblzma/common/alone_encoder.c b/src/liblzma/common/alone_encoder.c index 96c1db70..c9392f37 100644 --- a/src/liblzma/common/alone_encoder.c +++ b/src/liblzma/common/alone_encoder.c @@ -129,6 +129,7 @@ alone_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator, // Initialize the LZMA encoder. const lzma_filter_info filters[2] = { { + .id = LZMA_FILTER_LZMA1, .init = &lzma_lzma_encoder_init, .options = (void *)(options), }, { -- cgit v1.2.3