aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-20 01:50:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-20 01:50:34 +0200
commit6338f1b3c095d44c2b461550aa1e4b88d220bb78 (patch)
treec04aa46a36cf1439f9a8f1fe43f72f3bc204f288 /libavcodec/tiff.c
parent23d69b158af433fab118b6b261d3bafa059761f8 (diff)
downloadffmpeg-6338f1b3c095d44c2b461550aa1e4b88d220bb78.tar.gz
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>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 0e8ddecbd0..cfa7e8c5f3 100644
--- a/libavcodec/tiff.c
+++ b/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;