From ddf8a3f1b91f91d16e00da9735169f4d1c0acdfe Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Sun, 4 Oct 2020 21:46:47 -0400 Subject: [PATCH] Enable inclusion of mid-flight LDMs in opt parser --- lib/compress/zstd_opt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index 69e73cb47..07b30f5f9 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -871,7 +871,6 @@ static void ZSTD_opt_maybeAddLdm(ZSTD_match_t* matches, U32* nbMatches, /* Ensure that current block position is not outside of the match */ if (currPosInBlock < matchStartPosInBlock || currPosInBlock >= matchEndPosInBlock - || posDiff > 0 /* As a next evolution we can enable adding LDMs in the middle of a match */ || candidateMatchLength < MINMATCH) { return; } -- 2.47.3