diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-11 16:01:53 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-14 12:53:03 +0100 |
commit | c0759acc6e5bd8167ab4983fc51eb1212da6a216 (patch) | |
tree | b46f6a783f5e6dd8e09fc7c0ca318ac34b88fb81 /source/fitz/load-gif.c | |
parent | 60edbbde3a384401cbefe338e55e7a5f52cad5f4 (diff) | |
download | mupdf-c0759acc6e5bd8167ab4983fc51eb1212da6a216.tar.xz |
Update TIFF LZW decode.
TIFF 5.0 uses a slightly laxer set of rules for TIFF decode.
Specifically, when we hit the maximum code, we are not required
to send a clear code immediately, but it can overrrun.
We don't bother storing codes > 12 bits, because they can never
be used. This avoids the need to extend the table.
Diffstat (limited to 'source/fitz/load-gif.c')
-rw-r--r-- | source/fitz/load-gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c index d31dee09..06f353f3 100644 --- a/source/fitz/load-gif.c +++ b/source/fitz/load-gif.c @@ -245,7 +245,7 @@ gif_read_tbid(fz_context *ctx, struct info *info, unsigned char *dest, unsigned p = gif_read_subblocks(ctx, info, p + 1, end, compressed); stm = fz_open_buffer(ctx, compressed); - lzwstm = fz_open_lzwd(ctx, stm, 0, mincodesize + 1, 1); + lzwstm = fz_open_lzwd(ctx, stm, 0, mincodesize + 1, 1, 0); uncompressed = fz_read_all(ctx, lzwstm, info->width * info->height); sp = uncompressed->data; |