Commit 7058a2a0 authored by bcoudurier's avatar bcoudurier

removed useless variables

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6766 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 868cfc36
...@@ -41,9 +41,7 @@ typedef struct GifState { ...@@ -41,9 +41,7 @@ typedef struct GifState {
int background_color_index; int background_color_index;
int transparent_color_index; int transparent_color_index;
int color_resolution; int color_resolution;
int image_linesize;
uint32_t *image_palette; uint32_t *image_palette;
int pix_fmt;
/* after the frame is displayed, the disposal method is used */ /* after the frame is displayed, the disposal method is used */
int gce_disposal; int gce_disposal;
...@@ -460,11 +458,6 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *data_size, u ...@@ -460,11 +458,6 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *data_size, u
if (gif_read_header1(s) < 0) if (gif_read_header1(s) < 0)
return -1; 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; avctx->pix_fmt = PIX_FMT_PAL8;
if (avcodec_check_dimensions(avctx, s->screen_width, s->screen_height)) if (avcodec_check_dimensions(avctx, s->screen_width, s->screen_height))
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment