projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634444f
)
Some TIFFs do not set rows per strip for single strip.
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 25 Jan 2007 06:44:53 +0000
(06:44 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 25 Jan 2007 06:44:53 +0000
(06:44 +0000)
Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index 199fbad70b6b3166d82d84c2299901e19eac0618..344b5a3116237c2a139b769e67462f0f74a3adbc 100644
(file)
--- 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");