summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-07-06 16:24:58 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2020-07-06 16:24:58 +0100
commite5802bc82dd3b85eec48437c44a299457f6b3b3c (patch)
tree4d29c9f5c405dde6bd72642c6c74c2fe53edab43
parent8442a27c2bb8df48029ceea6e64c4930106a57fc (diff)
downloadlibnsgif-e5802bc82dd3b85eec48437c44a299457f6b3b3c.tar.gz
libnsgif-e5802bc82dd3b85eec48437c44a299457f6b3b3c.tar.bz2
Fix allocation size comparison in previous frame recorder.HEADmaster
-rw-r--r--src/libnsgif.c2
1 files changed, 1 insertions, 1 deletions
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;
}