mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 08:24:11 -06:00
translate threads to decoder (previously ignored): important for -mmt>=2 to use brotli-mt (the streams are incompatible)
This commit is contained in:
@@ -173,6 +173,9 @@ STDMETHODIMP CHandler::Extract(const UInt32 *indices, UInt32 numItems,
|
|||||||
|
|
||||||
NCompress::NBROTLI::CDecoder *decoderSpec = new NCompress::NBROTLI::CDecoder;
|
NCompress::NBROTLI::CDecoder *decoderSpec = new NCompress::NBROTLI::CDecoder;
|
||||||
decoderSpec->SetNumberOfThreads(0); /* .br - single threaded processing (without header/mt-frames) */
|
decoderSpec->SetNumberOfThreads(0); /* .br - single threaded processing (without header/mt-frames) */
|
||||||
|
if (_props._numThreads_WasForced) {
|
||||||
|
decoderSpec->SetNumberOfThreads(_props._numThreads); // translate to decoder (important for -mmt>=2 to use brotli-mt)
|
||||||
|
}
|
||||||
CMyComPtr<ICompressCoder> decoder = decoderSpec;
|
CMyComPtr<ICompressCoder> decoder = decoderSpec;
|
||||||
decoderSpec->SetInStream(_seqStream);
|
decoderSpec->SetInStream(_seqStream);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user