From 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 29 Jan 2014 20:13:51 +0200 Subject: liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt(). It read the filter chain from a wrong variable. --- src/liblzma/common/stream_encoder_mt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c index 335110b3..70fe247c 100644 --- a/src/liblzma/common/stream_encoder_mt.c +++ b/src/liblzma/common/stream_encoder_mt.c @@ -1036,8 +1036,8 @@ stream_encoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator, for (size_t i = 0; next->coder->filters[i].id != LZMA_VLI_UNKNOWN; ++i) lzma_free(next->coder->filters[i].options, allocator); - return_if_error(lzma_filters_copy(options->filters, - next->coder->filters, allocator)); + return_if_error(lzma_filters_copy( + filters, next->coder->filters, allocator)); // Index lzma_index_end(next->coder->index, allocator); -- cgit v1.2.3