avcodec/tiff: remove byte based bpp special case

This case does not work as off is uninitialized and it should be
handled fine by the generic code below

Fixes CID1108608

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/40/head
Michael Niedermayer 12 years ago
parent 23d69b158a
commit 6338f1b3c0
  1. 3
      libavcodec/tiff.c

@ -622,9 +622,6 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
else {
switch (type) {
case TIFF_BYTE:
s->bpp = (off & 0xFF) + ((off >> 8) & 0xFF) +
((off >> 16) & 0xFF) + ((off >> 24) & 0xFF);
break;
case TIFF_SHORT:
case TIFF_LONG:
s->bpp = 0;

Loading…
Cancel
Save