From 0aba920d617defda09957fa99db5a9a95b831398 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 27 Oct 2013 12:43:59 +0100 Subject: [PATCH] avcodec/tiff: Fix use of uninitialized off variable Fixes CID1108608 Signed-off-by: Michael Niedermayer --- libavcodec/tiff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index cfa7e8c5f3..a22db43872 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -597,9 +597,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame) value = UINT_MAX; } } else { - if (type_sizes[type] * count > 4) { - off = bytestream2_tell(&s->gb); - } + off = bytestream2_tell(&s->gb); } switch (tag) {