static int write_cvid_header(CinepakEncContext *s, unsigned char *buf, int num_strips, int data_size)

{

    buf[0] = 0;

    AV_WB24(&buf[1], data_size + CVID_HEADER_SIZE);

    AV_WB16(&buf[4], s->w);

    AV_WB16(&buf[6], s->h);

    AV_WB16(&buf[8], num_strips);



    return CVID_HEADER_SIZE;

}

static int write_cvid_header(CinepakEncContext *s, unsigned char *buf, int num_strips, int data_size)

{

    buf[0] = 0;

    AV_WB24(&buf[1], data_size + CVID_HEADER_SIZE);

    AV_WB16(&buf[4], s->w);

    AV_WB16(&buf[6], s->h);

    AV_WB16(&buf[8], num_strips);



    return CVID_HEADER_SIZE;

}

static int write_cvid_header(CinepakEncContext *s, unsigned char *buf, int num_strips, int data_size)     buf[0] = 0;
static int FUNC_0(CinepakEncContext *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3)

{

    VAR_1[0] = 0;

    AV_WB24(&VAR_1[1], VAR_3 + CVID_HEADER_SIZE);

    AV_WB16(&VAR_1[4], VAR_0->w);

    AV_WB16(&VAR_1[6], VAR_0->h);

    AV_WB16(&VAR_1[8], VAR_2);



    return CVID_HEADER_SIZE;

}

static int FUNC_0(CinepakEncContext *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3)
{ VAR_1[0] = 0; AV_WB24(&VAR_1[1], VAR_3 + CVID_HEADER_SIZE); AV_WB16(&VAR_1[4], VAR_0->w); AV_WB16(&VAR_1[6], VAR_0->h); AV_WB16(&VAR_1[8], VAR_2); return CVID_HEADER_SIZE; }