summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-04 10:13:15 +0100
committerGitHub <noreply@github.com>2019-01-04 10:13:15 +0100
commitbdbcf29246bad902e94c3a5fb1fd1abb06aeb2ae (patch)
treec85c2c9a80d04e338cf39d0fed3fdba2d0291b29 /core/io
parentb1e3215f3a316cfaf518747f7dafba4cc0d8d291 (diff)
parente64391f47bf95ab4cdb65683623979ee6790836e (diff)
Merge pull request #24754 from guilhermefelipecgs/fix_17374
Update zstd to 1.3.8
Diffstat (limited to 'core/io')
-rw-r--r--core/io/compression.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/compression.cpp b/core/io/compression.cpp
index 798c036fae..a113f3b61b 100644
--- a/core/io/compression.cpp
+++ b/core/io/compression.cpp
@@ -81,10 +81,10 @@ int Compression::compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size,
} break;
case MODE_ZSTD: {
ZSTD_CCtx *cctx = ZSTD_createCCtx();
- ZSTD_CCtx_setParameter(cctx, ZSTD_p_compressionLevel, zstd_level);
+ ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, zstd_level);
if (zstd_long_distance_matching) {
- ZSTD_CCtx_setParameter(cctx, ZSTD_p_enableLongDistanceMatching, 1);
- ZSTD_CCtx_setParameter(cctx, ZSTD_p_windowLog, zstd_window_log_size);
+ ZSTD_CCtx_setParameter(cctx, ZSTD_c_enableLongDistanceMatching, 1);
+ ZSTD_CCtx_setParameter(cctx, ZSTD_c_windowLog, zstd_window_log_size);
}
int max_dst_size = get_max_compressed_buffer_size(p_src_size, MODE_ZSTD);
int ret = ZSTD_compressCCtx(cctx, p_dst, max_dst_size, p_src, p_src_size, zstd_level);