diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-27 12:43:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-27 13:10:38 +0100 |
commit | 0aba920d617defda09957fa99db5a9a95b831398 (patch) | |
tree | 21f3974e7e61d67f6ab9dd202a4146c95788d6cb /libavcodec | |
parent | 43041a7b4aa26271721b6f483632090c5ee3ce40 (diff) | |
download | ffmpeg-streaming-0aba920d617defda09957fa99db5a9a95b831398.zip ffmpeg-streaming-0aba920d617defda09957fa99db5a9a95b831398.tar.gz |
avcodec/tiff: Fix use of uninitialized off variable
Fixes CID1108608
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index cfa7e8c..a22db43 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) { |