Commit a43458d7 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Anton Khirnov
Browse files

tiff: fix linesize for mono-white/black formats.



Fix decoding of file Test_1bpp.tif
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 5a4a7125
...@@ -105,7 +105,7 @@ static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src, ...@@ -105,7 +105,7 @@ static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src,
static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){
int c, line, pixels, code; int c, line, pixels, code;
const uint8_t *ssrc = src; const uint8_t *ssrc = src;
int width = s->width * s->bpp >> 3; int width = ((s->width * s->bpp) + 7) >> 3;
#if CONFIG_ZLIB #if CONFIG_ZLIB
uint8_t *zbuf; unsigned long outlen; uint8_t *zbuf; unsigned long outlen;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment