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:
Vincent Rabaud 2017-08-04 13:32:12 +02:00
parent b8821dbd81
commit 8c3f9a4706

View File

@ -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 {