diff options
Diffstat (limited to 'source/fitz/load-bmp.c')
-rw-r--r-- | source/fitz/load-bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-bmp.c b/source/fitz/load-bmp.c index 19aefd25..62c76119 100644 --- a/source/fitz/load-bmp.c +++ b/source/fitz/load-bmp.c @@ -677,7 +677,7 @@ bmp_read_image(fz_context *ctx, struct info *info, unsigned char *p, int total, if (info->width <= 0 || info->width > SHRT_MAX || info->height <= 0 || info->height > SHRT_MAX) fz_throw(ctx, FZ_ERROR_GENERIC, "dimensions (%d x %d) out of range in bmp image", info->width, info->height); - if (info->bitcount != 0 && info->bitcount != 1 && + if (info->bitcount != 1 && info->bitcount != 2 && info->bitcount != 4 && info->bitcount != 8 && info->bitcount != 16 && info->bitcount != 24 && info->bitcount != 32) |