Commit 0aba920d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/tiff: Fix use of uninitialized off variable

Fixes CID1108608
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 43041a7b
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment