1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-18 15:25:05 +02:00

avcodec/tiff: Fix use of uninitialized off variable

Fixes CID1108608

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-27 12:43:59 +01:00
parent 43041a7b4a
commit 0aba920d61

View 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) {