mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 12:28:26 +01:00
Merge "Revert an LZ77 boundary constant." into 0.5.1
This commit is contained in:
commit
cc2720c1d5
@ -442,8 +442,7 @@ static int BackwardReferencesLz77(int xsize, int ysize,
|
|||||||
int len = 0;
|
int len = 0;
|
||||||
int j;
|
int j;
|
||||||
HashChainFindCopy(hash_chain, i, &offset, &len);
|
HashChainFindCopy(hash_chain, i, &offset, &len);
|
||||||
// MIN_LENGTH+1 is empirically better than MIN_LENGTH.
|
if (len > MIN_LENGTH) {
|
||||||
if (len > MIN_LENGTH + 1) {
|
|
||||||
const int len_ini = len;
|
const int len_ini = len;
|
||||||
int max_reach = 0;
|
int max_reach = 0;
|
||||||
assert(i + len < pix_count);
|
assert(i + len < pix_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user