small gif2webp fix

the old kmin value was printed instead of the new one.

Change-Id: I0dcf23a29b7ce6bad08013a1980c5ce027b1bfe9
This commit is contained in:
skal 2013-10-04 21:13:35 +02:00
parent 4df0c89e24
commit 5a7533ceb3

View File

@ -62,9 +62,9 @@ static void SanitizeKeyFrameIntervals(size_t* const kmin_ptr,
}
// Limit the max number of frames that are allocated.
if (kmax - kmin > MAX_CACHE_SIZE) {
kmin = kmax - MAX_CACHE_SIZE;
fprintf(stderr,
"WARNING: Setting kmin = %zu, so that kmax - kmin <= 30.\n", kmin);
kmin = kmax - MAX_CACHE_SIZE;
}
*kmin_ptr = kmin;
*kmax_ptr = kmax;