[FFmpeg-cvslog] lavc/tiff: Support multi-component files without RowsPerStrip tag.

Carl Eugen Hoyos git at videolan.org
Thu Sep 1 21:28:02 EEST 2022


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Aug 31 19:37:19 2022 +0200| [ff6044b921ffb59964a126faef5106a391a819eb] | committer: Carl Eugen Hoyos

lavc/tiff: Support multi-component files without RowsPerStrip tag.

Fixes ticket #9514.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff6044b921ffb59964a126faef5106a391a819eb
---

 libavcodec/tiff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list