From e5802bc82dd3b85eec48437c44a299457f6b3b3c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 6 Jul 2020 16:24:58 +0100 Subject: Fix allocation size comparison in previous frame recorder. --- src/libnsgif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnsgif.c b/src/libnsgif.c index 95bbbfb..479d161 100644 --- a/src/libnsgif.c +++ b/src/libnsgif.c @@ -589,7 +589,7 @@ static void gif__record_previous_frame(gif_animation *gif) } if (gif->prev_frame != NULL && - gif->width * gif->height < gif->prev_width * gif->prev_height) { + gif->width * gif->height > gif->prev_width * gif->prev_height) { need_alloc = true; } -- cgit v1.2.3