From a3611513d2bf465fd282d9dc45b3f72c79c232ad Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 14 Jun 2016 21:42:45 +0200 Subject: [PATCH] Revert an LZ77 boundary constant. This is getting back to the old behavior which is actually better for compression and speed with the latest patches. Change-Id: I35884bab02589297c25d6e1e66dc5f13e05f7aa7 --- src/enc/backward_references.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/enc/backward_references.c b/src/enc/backward_references.c index 27886f30..de75611c 100644 --- a/src/enc/backward_references.c +++ b/src/enc/backward_references.c @@ -437,8 +437,7 @@ static int BackwardReferencesLz77(int xsize, int ysize, int len = 0; int j; HashChainFindCopy(hash_chain, i, &offset, &len); - // MIN_LENGTH+1 is empirically better than MIN_LENGTH. - if (len > MIN_LENGTH + 1) { + if (len > MIN_LENGTH) { const int len_ini = len; int max_reach = 0; assert(i + len < pix_count);