diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-24 13:45:32 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-26 18:47:26 +0800 |
commit | 79467b426974ca1f1578570b1400d9761e531a95 (patch) | |
tree | 8ce898821e30a915273ea2c222e75c7accade1cb | |
parent | b776317b390865a534883f1534d7bdef8ad0a2c2 (diff) | |
download | mupdf-79467b426974ca1f1578570b1400d9761e531a95.tar.xz |
tiff: Support images with 2 and 16 bits per palette color.
-rw-r--r-- | source/fitz/load-tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |