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
This commit is contained in:
Vincent Rabaud 2016-06-14 21:42:45 +02:00
parent 8190374c2b
commit a3611513d2

View File

@ -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);