liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt().

It read the filter chain from a wrong variable.
This commit is contained in:
Lasse Collin 2014-01-29 20:13:51 +02:00
parent 673a4cb53d
commit 9494fb6d0f

View File

@ -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) for (size_t i = 0; next->coder->filters[i].id != LZMA_VLI_UNKNOWN; ++i)
lzma_free(next->coder->filters[i].options, allocator); lzma_free(next->coder->filters[i].options, allocator);
return_if_error(lzma_filters_copy(options->filters, return_if_error(lzma_filters_copy(
next->coder->filters, allocator)); filters, next->coder->filters, allocator));
// Index // Index
lzma_index_end(next->coder->index, allocator); lzma_index_end(next->coder->index, allocator);