Fix zstd compression level

This commit is contained in:
Peter Harris 2023-06-30 15:28:34 -04:00 committed by Nathan Moinvaziri
parent d14fb2f294
commit 9453d4ffcf

View File

@ -68,6 +68,7 @@ int32_t mz_stream_zstd_open(void *stream, const char *path, int32_t mode) {
zstd->out.dst = zstd->buffer;
zstd->out.size = sizeof(zstd->buffer);
zstd->out.pos = 0;
ZSTD_CCtx_setParameter(zstd->zcstream, ZSTD_c_compressionLevel, zstd->preset);
#endif
} else if (mode & MZ_OPEN_MODE_READ) {
#ifdef MZ_ZIP_NO_DECOMPRESSION