aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2013-09-30 01:00:20 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2014-04-12 14:52:10 -0400
commit345a96c327e8f2a8077189af9f5e8d2b3f4ad5fe (patch)
treeed5c84986050b9eb9d3aafecb93e4ee0f2fb6e5f
parenta9b046fb0ae5395c4d1d8a82cd0d3e354b5034ed (diff)
downloadffmpeg-345a96c327e8f2a8077189af9f5e8d2b3f4ad5fe.tar.gz
tiffdec: remove an unneeded variable
-rw-r--r--libavcodec/tiff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index b32435c2e5..d801302704 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -300,7 +300,6 @@ static int tiff_decode_tag(TiffContext *s)
{
unsigned tag, type, count, off, value = 0;
int i, start;
- uint32_t *pal;
if (bytestream2_get_bytes_left(&s->gb) < 12)
return AVERROR_INVALIDDATA;
@@ -485,7 +484,6 @@ static int tiff_decode_tag(TiffContext *s)
break;
case TIFF_PAL: {
GetByteContext pal_gb[3];
- pal = (uint32_t *) s->palette;
off = type_sizes[type];
if (count / 3 > 256 ||
bytestream2_get_bytes_left(&s->gb) < count / 3 * off * 3)
@@ -499,7 +497,7 @@ static int tiff_decode_tag(TiffContext *s)
p |= (tget(&pal_gb[0], type, s->le) >> off) << 16;
p |= (tget(&pal_gb[1], type, s->le) >> off) << 8;
p |= tget(&pal_gb[2], type, s->le) >> off;
- pal[i] = p;
+ s->palette[i] = p;
}
s->palette_is_set = 1;
break;