summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-26 18:45:21 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-26 18:47:00 +0800
commit6c6c5c6601f53859d9422ab715c8907dacb4ffc0 (patch)
treee3df4eeca3e7e2e2e90fe67cdf6e43fcfd333bec /source
parentc2acdba7e9b72e18afdd3aa8dfdf66088b1ea1be (diff)
downloadmupdf-6c6c5c6601f53859d9422ab715c8907dacb4ffc0.tar.xz
gif: Use frame size when parsing a frame, not size of entire image.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/load-gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c
index 053a4493..096fa12f 100644
--- a/source/fitz/load-gif.c
+++ b/source/fitz/load-gif.c
@@ -247,7 +247,7 @@ gif_read_tbid(fz_context *ctx, struct info *info, unsigned char *dest, unsigned
stm = fz_open_buffer(ctx, compressed);
lzwstm = fz_open_lzwd(ctx, stm, 0, mincodesize + 1, 1, 0);
- uncompressed = fz_read_all(ctx, lzwstm, info->width * info->height);
+ uncompressed = fz_read_all(ctx, lzwstm, info->image_width * info->image_height);
sp = uncompressed->data;
if (info->has_lct)