summaryrefslogtreecommitdiff
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-05 15:10:33 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-05 15:10:33 +0000
commitbc52b0c518af14397955e5f810c363579247bca9 (patch)
tree1fa82dd3b58518de8c5fcd528fb038ceb27e898e /libavcodec/gifdec.c
parentb190aa89190e236fae7646a6dd18b99123c1eb9b (diff)
remove useless line variable
Originally committed as revision 6901 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 9e8765e1cc..5a5712299e 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -62,7 +62,7 @@ static int gif_read_image(GifState *s)
{
int left, top, width, height, bits_per_pixel, code_size, flags;
int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i;
- uint8_t *ptr, *line, *spal, *palette, *ptr1;
+ uint8_t *ptr, *spal, *palette, *ptr1;
left = bytestream_get_le16(&s->bytestream);
top = bytestream_get_le16(&s->bytestream);
@@ -102,7 +102,6 @@ static int gif_read_image(GifState *s)
/* handle transparency */
if (s->transparent_color_index >= 0)
s->image_palette[s->transparent_color_index] = 0;
- line = NULL;
/* now get the image data */
code_size = bytestream_get_byte(&s->bytestream);
@@ -151,8 +150,6 @@ static int gif_read_image(GifState *s)
ptr += linesize;
}
}
- av_free(line);
-
/* read the garbage data until end marker is found */
ff_lzw_decode_tail(s->lzw);
s->bytestream = ff_lzw_cur_ptr(s->lzw);