int gif_write(ByteIOContext *pb, AVImageInfo *info)

{

    gif_image_write_header(pb, info->width, info->height, 

                           (uint32_t *)info->pict.data[1]);

    gif_image_write_image(pb, 0, 0, info->width, info->height, 

                          info->pict.data[0], info->pict.linesize[0], 

                          PIX_FMT_PAL8);

    put_byte(pb, 0x3b);

    put_flush_packet(pb);

    return 0;

}

int gif_write(ByteIOContext *pb, AVImageInfo *info)

{

    gif_image_write_header(pb, info->width, info->height, 

                           (uint32_t *)info->pict.data[1]);

    gif_image_write_image(pb, 0, 0, info->width, info->height, 

                          info->pict.data[0], info->pict.linesize[0], 

                          PIX_FMT_PAL8);

    put_byte(pb, 0x3b);

    put_flush_packet(pb);

    return 0;

}

int FUNC_0(ByteIOContext *VAR_0, AVImageInfo *VAR_1)

{

    gif_image_write_header(VAR_0, VAR_1->width, VAR_1->height, 

                           (uint32_t *)VAR_1->pict.data[1]);

    gif_image_write_image(VAR_0, 0, 0, VAR_1->width, VAR_1->height, 

                          VAR_1->pict.data[0], VAR_1->pict.linesize[0], 

                          PIX_FMT_PAL8);

    put_byte(VAR_0, 0x3b);

    put_flush_packet(VAR_0);

    return 0;

}

int FUNC_0(ByteIOContext *VAR_0, AVImageInfo *VAR_1)
{ gif_image_write_header(VAR_0, VAR_1->width, VAR_1->height,
(uint32_t *)VAR_1->pict.data[1]); gif_image_write_image(VAR_0, 0, 0, VAR_1->width, VAR_1->height,
VAR_1->pict.data[0], VAR_1->pict.linesize[0],
PIX_FMT_PAL8); put_byte(VAR_0, 0x3b); put_flush_packet(VAR_0); return 0; }