X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fcompress_parallel.c;h=e624819be77bb432a6c685ece3e2e039537c56b7;hb=4dd45340f9fe3a533e0f1a9d6b79f8118e45ca2a;hp=e083c079ab614a26e83edabdefbcf6fa0e06b102;hpb=f957cacefa8b7b14544d27ba8519dae94e96c9f7;p=wimlib diff --git a/src/compress_parallel.c b/src/compress_parallel.c index e083c079..e624819b 100644 --- a/src/compress_parallel.c +++ b/src/compress_parallel.c @@ -451,7 +451,7 @@ new_parallel_chunk_compressor(int out_ctype, u32 out_chunk_size, + 1000000 + num_threads * wimlib_get_compressor_needed_memory(out_ctype, out_chunk_size, - NULL); + 0); if (approx_mem_required <= max_memory) break; @@ -510,8 +510,8 @@ new_parallel_chunk_compressor(int out_ctype, u32 out_chunk_size, dat->chunks_to_compress_queue = &ctx->chunks_to_compress_queue; dat->compressed_chunks_queue = &ctx->compressed_chunks_queue; - ret = wimlib_create_compressor(out_ctype, out_chunk_size, - NULL, &dat->compressor); + ret = wimlib_create_compressor(out_ctype, out_chunk_size, 0, + &dat->compressor); if (ret) goto err; }