summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-24 17:31:43 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-26 18:47:26 +0800
commit81b4cd572a176ad56c2f9c3d12121f61a52e5a35 (patch)
treeceaca6aa742e068a9e6ee4e6782323e5428ebe90 /source
parent79467b426974ca1f1578570b1400d9761e531a95 (diff)
downloadmupdf-81b4cd572a176ad56c2f9c3d12121f61a52e5a35.tar.xz
tiff: Support flate compression under differnent name.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/load-tiff.c3
1 files changed, 2 insertions, 1 deletions
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++)