diff mbox series

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

Message ID CAB0OVGr+vbcP4q4piH37Jnhqrb5B3fAv7S3fAnGpwSvEcG0eDw@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] lavc/tiff: Support multi-component files without RowsPerStrip tag | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Carl Eugen Hoyos Aug. 31, 2022, 5:48 p.m. UTC
Hi!

Attached patch fixes ticket #9514 for me.

Please review, Carl Eugen

Comments

Steven Liu Sept. 1, 2022, 2:10 a.m. UTC | #1
Carl Eugen Hoyos <ceffmpeg@gmail.com> 于2022年9月1日周四 01:48写道:
>
> Hi!
>
> Attached patch fixes ticket #9514 for me.
>
> Please review, Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

lgtm

Thanks
Steven
Carl Eugen Hoyos Sept. 1, 2022, 6:28 p.m. UTC | #2
Am Do., 1. Sept. 2022 um 04:10 Uhr schrieb Steven Liu <lingjiujianke@gmail.com>:
>
> Carl Eugen Hoyos <ceffmpeg@gmail.com> 于2022年9月1日周四 01:48写道:
> >
> > Hi!
> >
> > Attached patch fixes ticket #9514 for me.
> >
> > Please review, Carl Eugen
>
> lgtm

Patch applied.

Thank you, Carl Eugen
diff mbox series

Patch

From 98df40635315363bfc248f5c5e94d89bdb261b5b Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Wed, 31 Aug 2022 19:37:19 +0200
Subject: [PATCH] lavc/tiff: Support multi-component files without RowsPerStrip
 tag.

Fixes ticket #9514.
---
 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;
-- 
2.30.1