On date Tuesday 2011-05-10 02:58:40 +0200, Michael Niedermayer encoded: > On Mon, May 09, 2011 at 10:28:17PM +0200, Stefano Sabatini wrote: > > Fix decoding of file Test_1bpp.tif, trac issue #171. > > --- > > libavcodec/tiff.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > LGTM, thx
Updated and added libav-devel to recipients.
>From 6e709bd3617943e2e0f786baaf6f2ce88e8760e0 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini <stefano.sabatini-l...@poste.it> Date: Mon, 9 May 2011 22:11:57 +0200 Subject: [PATCH] tiff: fix linesize for mono-white/black formats Fix decoding of file Test_1bpp.tif, fix trac issue #171. --- libavcodec/tiff.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 8a565ef..8025df3 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -101,7 +101,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){ int c, line, pixels, code; const uint8_t *ssrc = src; - int width = s->width * s->bpp >> 3; + int width = ((s->width * s->bpp) + 7) >> 3; #if CONFIG_ZLIB uint8_t *zbuf; unsigned long outlen; -- 1.7.2.3
_______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel