changeset 4144:dc52a253f51b libavcodec

remove useless line variable
author bcoudurier
date Sun, 05 Nov 2006 15:10:33 +0000
parents a8e3a116b41f
children a5fca6fd5e4c
files gifdec.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gifdec.c	Sun Nov 05 15:06:12 2006 +0000
+++ b/gifdec.c	Sun Nov 05 15:10:33 2006 +0000
@@ -62,7 +62,7 @@
 {
     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 @@
     /* 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 @@
             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);