liblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage().

It read the filter chain from a wrong variable. This is a similar
bug that was fixed in 9494fb6d0f.
This commit is contained in:
Lasse Collin 2014-11-10 15:38:47 +02:00
parent 230fa4a605
commit 7716dcf9df
1 changed files with 1 additions and 2 deletions

View File

@ -1095,8 +1095,7 @@ lzma_stream_encoder_mt_memusage(const lzma_mt *options)
const uint64_t inbuf_memusage = options->threads * block_size;
// Memory usage of the filter encoders
uint64_t filters_memusage
= lzma_raw_encoder_memusage(options->filters);
uint64_t filters_memusage = lzma_raw_encoder_memusage(filters);
if (filters_memusage == UINT64_MAX)
return UINT64_MAX;