]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Attach Dict When Using ZSTD_lazy Strategies
authorW. Felix Handte <w@felixhandte.com>
Wed, 16 May 2018 06:31:30 +0000 (02:31 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 13 Jun 2018 18:58:36 +0000 (14:58 -0400)
lib/compress/zstd_compress.c

index b075d1123740b83159960b465a721e5b283a0b16..142ff6c59e88b0abdc93168ee800ccf95992174d 100644 (file)
@@ -1244,7 +1244,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
                           || pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN )
                         && !params.forceWindow /* dictMatchState isn't correctly
                                                 * handled in _enforceMaxDist */
-                        && cdict->cParams.strategy <= ZSTD_dfast
+                        && cdict->cParams.strategy <= ZSTD_btlazy2
                         && ZSTD_equivalentCParams(cctx->appliedParams.cParams,
                                                   cdict->cParams);