From 5a7533ceb3ab6c0d4055fcb03d968121b2328f11 Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 4 Oct 2013 21:13:35 +0200 Subject: [PATCH] small gif2webp fix the old kmin value was printed instead of the new one. Change-Id: I0dcf23a29b7ce6bad08013a1980c5ce027b1bfe9 --- examples/gif2webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 570dcf93..cc44480e 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -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;