[FFmpeg-cvslog] avcodec/tiff: remove redundant check

Michael Niedermayer git at videolan.org
Fri Aug 9 14:59:24 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug  9 14:53:55 2013 +0200| [200170e8c0b7affea87847ca1f5b0c9a9cf19533] | committer: Michael Niedermayer

avcodec/tiff: remove redundant check

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 483225d..f4ad773 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -733,7 +733,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
             bytestream2_seek(&s->gb, off, SEEK_SET);
         }
     } else {
-        if (count > 4 || type_sizes[type] * count > 4) {
+        if (type_sizes[type] * count > 4) {
             off   = tget_long(&s->gb, s->le);
             bytestream2_seek(&s->gb, off, SEEK_SET);
         }



More information about the ffmpeg-cvslog mailing list