From: Yann Collet Date: Fri, 30 Jun 2017 23:01:02 +0000 (-0700) Subject: fixed : dictionary compression with new advanced API in Multi-threading mode X-Git-Tag: v1.3.0~1^2~2^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58bd0e70fc83b1e519ea41b264fe2bfab8e43348;p=thirdparty%2Fzstd.git fixed : dictionary compression with new advanced API in Multi-threading mode --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index c96ef4825..38f8af2e7 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -474,6 +474,7 @@ size_t ZSTDMT_compress_advanced(ZSTDMT_CCtx* mtctx, if (nbChunks==1) { /* fallback to single-thread mode */ ZSTD_CCtx* const cctx = mtctx->cctxPool->cctx[0]; + if (cdict) return ZSTD_compress_usingCDict_advanced(cctx, dst, dstCapacity, src, srcSize, cdict, params.fParams); return ZSTD_compress_advanced(cctx, dst, dstCapacity, src, srcSize, NULL, 0, params); }