summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/load-tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index a9325f18..52df3de3 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -291,7 +291,7 @@ fz_expand_tiff_colormap(struct tiff *tiff)
if (tiff->samplesperpixel != 1 && tiff->samplesperpixel != 2)
fz_throw(tiff->ctx, FZ_ERROR_GENERIC, "invalid number of samples for RGBPal");
- if (tiff->bitspersample != 4 && tiff->bitspersample != 8)
+ if (tiff->bitspersample != 1 && tiff->bitspersample != 4 && tiff->bitspersample != 8)
fz_throw(tiff->ctx, FZ_ERROR_GENERIC, "invalid number of bits for RGBPal");
if (tiff->colormaplen < (unsigned)maxval * 3)