aboutsummaryrefslogtreecommitdiff
path: root/C/Lzma2Enc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--C/Lzma2Enc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/C/Lzma2Enc.c b/C/Lzma2Enc.c
index 703e146..72aec69 100644
--- a/C/Lzma2Enc.c
+++ b/C/Lzma2Enc.c
@@ -1,5 +1,5 @@
1/* Lzma2Enc.c -- LZMA2 Encoder 1/* Lzma2Enc.c -- LZMA2 Encoder
22023-04-13 : Igor Pavlov : Public domain */ 2: Igor Pavlov : Public domain */
3 3
4#include "Precomp.h" 4#include "Precomp.h"
5 5
@@ -235,6 +235,7 @@ void Lzma2EncProps_Init(CLzma2EncProps *p)
235 p->numBlockThreads_Reduced = -1; 235 p->numBlockThreads_Reduced = -1;
236 p->numBlockThreads_Max = -1; 236 p->numBlockThreads_Max = -1;
237 p->numTotalThreads = -1; 237 p->numTotalThreads = -1;
238 p->numThreadGroups = 0;
238} 239}
239 240
240void Lzma2EncProps_Normalize(CLzma2EncProps *p) 241void Lzma2EncProps_Normalize(CLzma2EncProps *p)
@@ -781,6 +782,7 @@ SRes Lzma2Enc_Encode2(CLzma2EncHandle p,
781 } 782 }
782 783
783 p->mtCoder.numThreadsMax = (unsigned)p->props.numBlockThreads_Max; 784 p->mtCoder.numThreadsMax = (unsigned)p->props.numBlockThreads_Max;
785 p->mtCoder.numThreadGroups = p->props.numThreadGroups;
784 p->mtCoder.expectedDataSize = p->expectedDataSize; 786 p->mtCoder.expectedDataSize = p->expectedDataSize;
785 787
786 { 788 {