summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2022-08-31 19:37:19 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2022-09-01 20:27:17 +0200
commitff6044b921ffb59964a126faef5106a391a819eb (patch)
tree9882072bd7fb57dafcf1989cad63a41a43ab0ac3 /libavcodec/tiff.c
parent90aa2a88f98473810bbbf6514a8327ae8ea9208a (diff)
lavc/tiff: Support multi-component files without RowsPerStrip tag.
Fixes ticket #9514.
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index b0595b56c0..109392ad44 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1367,7 +1367,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
} else
s->strippos = off;
s->strips = count;
- if (s->strips == 1)
+ if (s->strips == s->bppcount)
s->rps = s->height;
s->sot = type;
break;