mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 20:11:38 -06:00
make compression of zstd archive type more similar to Zstandard CLI (store dictID and checksum by default in zstd type, no effect for 7z type)
This commit is contained in:
@@ -286,6 +286,9 @@ static HRESULT UpdateArchive(
|
||||
CMyComPtr<ICompressProgressInfo> localProgress = localProgressSpec;
|
||||
localProgressSpec->Init(updateCallback, true);
|
||||
NCompress::NZSTD::CEncoder *encoderSpec = new NCompress::NZSTD::CEncoder;
|
||||
// by zstd archive type store dictID and checksum (similar to zstd client)
|
||||
encoderSpec->dictIDFlag = 1;
|
||||
encoderSpec->checksumFlag = 1;
|
||||
encoderSpec->unpackSize = unpackSize;
|
||||
CMyComPtr<ICompressCoder> encoder = encoderSpec;
|
||||
RINOK(props.SetCoderProps(encoderSpec, NULL));
|
||||
|
||||
Reference in New Issue
Block a user