diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-03-24 17:20:42 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-29 13:06:27 +0100 |
commit | 6f4f108699279e922211ae73cd6697f158183775 (patch) | |
tree | 0419817f2a9dc3627648288ccecbe84ed99939db /source | |
parent | 020911485b5433ff135480165d100b10e3b051c7 (diff) | |
download | mupdf-6f4f108699279e922211ae73cd6697f158183775.tar.xz |
bmp: Fix typo in supported bits per pixel check.
Diffstat (limited to 'source')
-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) |