diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index a22db438723e6087a61bcab4274d82f4cde5dbf2..e8c99507d7fee3b4e6316eea8c32c9aed8a8cca5 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -582,11 +582,8 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame) switch (type) { case TIFF_BYTE: case TIFF_SHORT: - value = ff_tget(&s->gb, type, s->le); - break; case TIFF_LONG: - off = ff_tget_long(&s->gb, s->le); - value = off; + value = ff_tget(&s->gb, type, s->le); break; case TIFF_STRING: if (count <= 4) {