# HG changeset patch # User bcoudurier # Date 1259787906 0 # Node ID 3d43d9bcf90378fe06fbdc4f25760734c1e37720 # Parent 3c7adb462b65433dbe1e7af0819ed278d08ab0de remove useless params diff -r 3c7adb462b65 -r 3d43d9bcf903 gif.c --- a/gif.c Wed Dec 02 21:04:23 2009 +0000 +++ b/gif.c Wed Dec 02 21:05:06 2009 +0000 @@ -85,7 +85,7 @@ static int gif_image_write_image(uint8_t **bytestream, int width, int height, - const uint8_t *buf, int linesize, int pix_fmt) + const uint8_t *buf, int linesize) { PutBitContext p; uint8_t buffer[200]; /* 100 * 9 / 8 = 113 */ @@ -162,7 +162,7 @@ p->pict_type = FF_I_TYPE; p->key_frame = 1; gif_image_write_header(&outbuf_ptr, avctx->width, avctx->height, (uint32_t *)pict->data[1]); - gif_image_write_image(&outbuf_ptr, avctx->width, avctx->height, pict->data[0], pict->linesize[0], PIX_FMT_PAL8); + gif_image_write_image(&outbuf_ptr, avctx->width, avctx->height, pict->data[0], pict->linesize[0]); return outbuf_ptr - outbuf; }