diff --git a/util/compression.h b/util/compression.h index 691bf1e69..ac285e5f1 100644 --- a/util/compression.h +++ b/util/compression.h @@ -620,7 +620,7 @@ inline bool ZSTD_Compress(const CompressionOptions& opts, const char* input, size_t compressBound = ZSTD_compressBound(length); output->resize(static_cast(output_header_len + compressBound)); size_t outlen = ZSTD_compress(&(*output)[output_header_len], compressBound, - input, length, 1 /* level */); + input, length, opts.level); if (outlen == 0) { return false; }