comparison gifdec.c @ 4059:219f4a12f52a libavcodec

removed useless variables
author bcoudurier
date Sun, 22 Oct 2006 16:12:13 +0000
parents 7f976c7cce97
children e46fa0f9192a
comparison
equal deleted inserted replaced
4058:7f976c7cce97 4059:219f4a12f52a
39 int screen_height; 39 int screen_height;
40 int bits_per_pixel; 40 int bits_per_pixel;
41 int background_color_index; 41 int background_color_index;
42 int transparent_color_index; 42 int transparent_color_index;
43 int color_resolution; 43 int color_resolution;
44 int image_linesize;
45 uint32_t *image_palette; 44 uint32_t *image_palette;
46 int pix_fmt;
47 45
48 /* after the frame is displayed, the disposal method is used */ 46 /* after the frame is displayed, the disposal method is used */
49 int gce_disposal; 47 int gce_disposal;
50 /* delay during which the frame is shown */ 48 /* delay during which the frame is shown */
51 int gce_delay; 49 int gce_delay;
458 456
459 s->bytestream = buf; 457 s->bytestream = buf;
460 if (gif_read_header1(s) < 0) 458 if (gif_read_header1(s) < 0)
461 return -1; 459 return -1;
462 460
463 /* allocate image buffer */
464 s->image_linesize = s->screen_width * 3;
465 s->pix_fmt = PIX_FMT_PAL8;
466 /* now we are ready: build format streams */
467
468 avctx->pix_fmt = PIX_FMT_PAL8; 461 avctx->pix_fmt = PIX_FMT_PAL8;
469 if (avcodec_check_dimensions(avctx, s->screen_width, s->screen_height)) 462 if (avcodec_check_dimensions(avctx, s->screen_width, s->screen_height))
470 return -1; 463 return -1;
471 avcodec_set_dimensions(avctx, s->screen_width, s->screen_height); 464 avcodec_set_dimensions(avctx, s->screen_width, s->screen_height);
472 465