diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-05-24 17:21:13 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-05-24 17:22:32 +0100 |
commit | 37bcf35c71204d29a20a8be08741baf65870ac9c (patch) | |
tree | 4ac879e0861c1abc1bc2d3b7a66ae05fa4ba3283 /source | |
parent | 8d50d64248ea647b2d2b92c6abd8cf84a65dea49 (diff) | |
download | mupdf-37bcf35c71204d29a20a8be08741baf65870ac9c.tar.xz |
Fix fz_decode_tile in the absence of alpha.
When no alpha present, we were omitting to decode the last
component.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/draw-unpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-unpack.c b/source/fitz/draw-unpack.c index 8ac76bdc..ccb3c62f 100644 --- a/source/fitz/draw-unpack.c +++ b/source/fitz/draw-unpack.c @@ -222,7 +222,7 @@ fz_decode_tile(fz_context *ctx, fz_pixmap *pix, const float *decode) unsigned char *p = pix->samples; int stride = pix->stride - pix->w * pix->n; int len; - int n = fz_maxi(1, pix->n - 1); + int n = fz_maxi(1, pix->n - pix->alpha); int needed; int k; int h; |