changeset 4059:219f4a12f52a libavcodec

removed useless variables
author bcoudurier
date Sun, 22 Oct 2006 16:12:13 +0000
parents 7f976c7cce97
children e46fa0f9192a
files gifdec.c
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gifdec.c	Sun Oct 22 16:10:04 2006 +0000
+++ b/gifdec.c	Sun Oct 22 16:12:13 2006 +0000
@@ -41,9 +41,7 @@
     int background_color_index;
     int transparent_color_index;
     int color_resolution;
-    int image_linesize;
     uint32_t *image_palette;
-    int pix_fmt;
 
     /* after the frame is displayed, the disposal method is used */
     int gce_disposal;
@@ -460,11 +458,6 @@
     if (gif_read_header1(s) < 0)
         return -1;
 
-    /* allocate image buffer */
-    s->image_linesize = s->screen_width * 3;
-    s->pix_fmt = PIX_FMT_PAL8;
-    /* now we are ready: build format streams */
-
     avctx->pix_fmt = PIX_FMT_PAL8;
     if (avcodec_check_dimensions(avctx, s->screen_width, s->screen_height))
         return -1;