avcodec/tiff: Fix use of uninitialized off variable
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Oct 2013 11:43:59 +0000 (12:43 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Oct 2013 12:10:38 +0000 (13:10 +0100)
Fixes CID1108608

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tiff.c

index cfa7e8c..a22db43 100644 (file)
@@ -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) {