aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-11-10 15:38:47 +0200
committerLasse Collin <lasse.collin@tukaani.org>2014-11-10 15:38:47 +0200
commit7716dcf9df7f457500cb657314e7a9aea5fedb06 (patch)
treeb4f56735795e69b289e2fca1e30f9813551ea03e /src/liblzma
parentUpdate THANKS. (diff)
downloadxz-7716dcf9df7f457500cb657314e7a9aea5fedb06.tar.xz
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 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e.
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/common/stream_encoder_mt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c
index 70fe247c..6188507f 100644
--- a/src/liblzma/common/stream_encoder_mt.c
+++ b/src/liblzma/common/stream_encoder_mt.c
@@ -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;