summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-27 12:43:59 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-10-27 13:10:38 +0100
commit0aba920d617defda09957fa99db5a9a95b831398 (patch)
tree21f3974e7e61d67f6ab9dd202a4146c95788d6cb /libavcodec/tiff.c
parent43041a7b4aa26271721b6f483632090c5ee3ce40 (diff)
avcodec/tiff: Fix use of uninitialized off variable
Fixes CID1108608 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c4
1 files changed, 1 insertions, 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) {