1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

View file

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