From 79467b426974ca1f1578570b1400d9761e531a95 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 24 Sep 2016 13:45:32 +0800 Subject: tiff: Support images with 2 and 16 bits per palette color. --- source/fitz/load-tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 3d2b273a..ac888b9a 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -313,7 +313,7 @@ fz_expand_tiff_colormap(fz_context *ctx, struct tiff *tiff) if (tiff->samplesperpixel != 1 && tiff->samplesperpixel != 2) fz_throw(ctx, FZ_ERROR_GENERIC, "invalid number of samples for RGBPal"); - if (tiff->bitspersample != 1 && tiff->bitspersample != 4 && tiff->bitspersample != 8) + if (tiff->bitspersample != 1 && tiff->bitspersample != 2 && tiff->bitspersample != 4 && tiff->bitspersample != 8 && tiff->bitspersample != 16) fz_throw(ctx, FZ_ERROR_GENERIC, "invalid number of bits for RGBPal"); if (tiff->colormaplen < (unsigned)maxval * 3) -- cgit v1.2.3