From 81b4cd572a176ad56c2f9c3d12121f61a52e5a35 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 24 Sep 2016 17:31:43 +0800 Subject: tiff: Support flate compression under differnent name. --- source/fitz/load-tiff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/fitz/load-tiff.c') diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index ac888b9a..b57497a2 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -503,6 +503,7 @@ fz_decode_tiff_strips(fz_context *ctx, struct tiff *tiff) fz_decode_tiff_jpeg(ctx, tiff, stm, wp, wlen); break; case 8: + case 32946: fz_decode_tiff_flate(ctx, tiff, stm, wp, wlen); break; case 32773: @@ -531,7 +532,7 @@ fz_decode_tiff_strips(fz_context *ctx, struct tiff *tiff) } /* Predictor (only for LZW and Flate) */ - if ((tiff->compression == 5 || tiff->compression == 8) && tiff->predictor == 2) + if ((tiff->compression == 5 || tiff->compression == 8 || tiff->compression == 32946) && tiff->predictor == 2) { unsigned char *p = tiff->samples; for (i = 0; i < tiff->imagelength; i++) -- cgit v1.2.3