From 6c6c5c6601f53859d9422ab715c8907dacb4ffc0 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 26 Sep 2016 18:45:21 +0800 Subject: gif: Use frame size when parsing a frame, not size of entire image. --- source/fitz/load-gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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) -- cgit v1.2.3