]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Attach Dicts when Using ZSTD_btlazy2
authorW. Felix Handte <w@felixhandte.com>
Tue, 12 Jun 2018 22:32:57 +0000 (18:32 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 13 Jun 2018 20:06:28 +0000 (16:06 -0400)
lib/compress/zstd_compress.c

index 807b1df5b7b9c4579ab7556a6ceecb2515b13e09..10224d3ba06a054c0ae18741ef505279e01454d1 100644 (file)
@@ -1236,7 +1236,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
         32 KB, /* ZSTD_greedy */
         32 KB, /* ZSTD_lazy */
         32 KB, /* ZSTD_lazy2 */
-        256 KB, /* ZSTD_btlazy2 */
+        32 KB, /* ZSTD_btlazy2 */
         256 KB, /* ZSTD_btopt */
         256 KB /* ZSTD_btultra */
     };
@@ -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_lazy2
+                        && cdict->cParams.strategy <= ZSTD_btlazy2
                         && ZSTD_equivalentCParams(cctx->appliedParams.cParams,
                                                   cdict->cParams);