From: senhuang42 Date: Mon, 5 Oct 2020 01:46:47 +0000 (-0400) Subject: Enable inclusion of mid-flight LDMs in opt parser X-Git-Tag: v1.4.7~57^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf8a3f1b91f91d16e00da9735169f4d1c0acdfe;p=thirdparty%2Fzstd.git Enable inclusion of mid-flight LDMs in opt parser --- 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; }