mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
23d69b158a
commit
6338f1b3c0
|
@ -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…
Reference in New Issue