summaryrefslogtreecommitdiff
path: root/libavcodec/gif.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-12-02 21:04:23 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-12-02 21:04:23 +0000
commitcc26bf0d06a6828c8b10d9ec8626d887df246f12 (patch)
tree5f73054d4fc13da2da6b28c249fbb7587ff2d998 /libavcodec/gif.c
parente4e8632aaf0d04145fc7133c271adbbbaefbc652 (diff)
remove useless params
Originally committed as revision 20708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r--libavcodec/gif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 00a1bf4cc1..7112219d2a 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -84,7 +84,7 @@ static int gif_image_write_header(uint8_t **bytestream,
}
static int gif_image_write_image(uint8_t **bytestream,
- int x1, int y1, int width, int height,
+ int width, int height,
const uint8_t *buf, int linesize, int pix_fmt)
{
PutBitContext p;
@@ -94,8 +94,8 @@ static int gif_image_write_image(uint8_t **bytestream,
/* image block */
bytestream_put_byte(bytestream, 0x2c);
- bytestream_put_le16(bytestream, x1);
- bytestream_put_le16(bytestream, y1);
+ bytestream_put_le16(bytestream, 0);
+ bytestream_put_le16(bytestream, 0);
bytestream_put_le16(bytestream, width);
bytestream_put_le16(bytestream, height);
bytestream_put_byte(bytestream, 0x00); /* flags */
@@ -162,7 +162,7 @@ static int gif_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int bu
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, 0, 0, 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], PIX_FMT_PAL8);
return outbuf_ptr - outbuf;
}