From 615259a33e364d1bad2e318ebd8e52f9b39ce2c0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 25 Jan 2007 06:44:53 +0000 Subject: [PATCH] Some TIFFs do not set rows per strip for single strip. Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/tiff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 199fbad..344b5a3 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -332,6 +332,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t }else s->stripdata = start + off; s->strips = count; + if(s->strips == 1) s->rps = s->height; s->sot = type; if(s->stripdata > end_buf){ av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n"); -- 2.7.4