mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 17:15:00 -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;
|
||||
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;
|
||||
decoderSpec->SetInStream(_seqStream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user