avcodec/tiff: remove redundant check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/37/head
Michael Niedermayer 11 years ago
parent a9553e8f37
commit 200170e8c0
  1. 2
      libavcodec/tiff.c

@ -733,7 +733,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
bytestream2_seek(&s->gb, off, SEEK_SET);
}
} else {
if (count > 4 || type_sizes[type] * count > 4) {
if (type_sizes[type] * count > 4) {
off = tget_long(&s->gb, s->le);
bytestream2_seek(&s->gb, off, SEEK_SET);
}

Loading…
Cancel
Save