Browse Source

avcodec/tiff: remove TIFF_LONG special case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
d5ad4e4a2f
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavcodec/tiff.c

+ 1
- 4
libavcodec/tiff.c View File

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


Loading…
Cancel
Save