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/compressed-buffer.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/compressed-buffer.c')
-rw-r--r-- | source/fitz/compressed-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/compressed-buffer.c b/source/fitz/compressed-buffer.c index e2ced271..8c9b7e56 100644 --- a/source/fitz/compressed-buffer.c +++ b/source/fitz/compressed-buffer.c @@ -54,7 +54,7 @@ fz_open_image_decomp_stream(fz_context *ctx, fz_stream *chain, fz_compression_pa chain = fz_open_predict(ctx, chain, params->u.flate.predictor, params->u.flate.columns, params->u.flate.colors, params->u.flate.bpc); return chain; case FZ_IMAGE_LZW: - chain = fz_open_lzwd(ctx, chain, params->u.lzw.early_change, 9, 0); + chain = fz_open_lzwd(ctx, chain, params->u.lzw.early_change, 9, 0, 0); if (params->u.lzw.predictor > 1) chain = fz_open_predict(ctx, chain, params->u.lzw.predictor, params->u.lzw.columns, params->u.lzw.colors, params->u.lzw.bpc); return chain; |