diff options
author | Kostya Shishkov | 2007-01-25 06:44:53 +0000 |
---|---|---|
committer | Kostya Shishkov | 2007-01-25 06:44:53 +0000 |
commit | 615259a33e364d1bad2e318ebd8e52f9b39ce2c0 (patch) | |
tree | 5fec371cce3d83611eabdfa73185662e31520890 /libavcodec | |
parent | 634444f4ce3514214a1658e484e6fba78c2224ec (diff) |
Some TIFFs do not set rows per strip for single strip.
Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 199fbad70b..344b5a3116 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"); |