mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
small gif2webp fix
the old kmin value was printed instead of the new one. Change-Id: I0dcf23a29b7ce6bad08013a1980c5ce027b1bfe9
This commit is contained in:
parent
4df0c89e24
commit
5a7533ceb3
@ -62,9 +62,9 @@ static void SanitizeKeyFrameIntervals(size_t* const kmin_ptr,
|
|||||||
}
|
}
|
||||||
// Limit the max number of frames that are allocated.
|
// Limit the max number of frames that are allocated.
|
||||||
if (kmax - kmin > MAX_CACHE_SIZE) {
|
if (kmax - kmin > MAX_CACHE_SIZE) {
|
||||||
|
kmin = kmax - MAX_CACHE_SIZE;
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WARNING: Setting kmin = %zu, so that kmax - kmin <= 30.\n", kmin);
|
"WARNING: Setting kmin = %zu, so that kmax - kmin <= 30.\n", kmin);
|
||||||
kmin = kmax - MAX_CACHE_SIZE;
|
|
||||||
}
|
}
|
||||||
*kmin_ptr = kmin;
|
*kmin_ptr = kmin;
|
||||||
*kmax_ptr = kmax;
|
*kmax_ptr = kmax;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user