mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Speed-up LZ77.
No need to look for a bigger maximum reach if we reach the end of the image. Change-Id: I56b166f9266f15cdff5aa59a75559972db19858f
This commit is contained in:
parent
b8821dbd81
commit
8c3f9a4706
@ -493,6 +493,7 @@ static int BackwardReferencesLz77(int xsize, int ysize,
|
||||
if (reach > max_reach) {
|
||||
len = j - i;
|
||||
max_reach = reach;
|
||||
if (max_reach >= pix_count) break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user