static void vb_decode_palette(VBDecContext *c)

{

    int start, size, i;



    start = bytestream_get_byte(&c->stream);

    size = (bytestream_get_byte(&c->stream) - 1) & 0xFF;

    if(start + size > 255){

        av_log(c->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n");

        return;

    }

    for(i = start; i <= start + size; i++)

        c->pal[i] = bytestream_get_be24(&c->stream);

}

static void vb_decode_palette(VBDecContext *c)

{

    int start, size, i;



    start = bytestream_get_byte(&c->stream);

    size = (bytestream_get_byte(&c->stream) - 1) & 0xFF;

    if(start + size > 255){

        av_log(c->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n");

        return;

    }

    for(i = start; i <= start + size; i++)

        c->pal[i] = bytestream_get_be24(&c->stream);

}

static void FUNC_0(VBDecContext *VAR_0)

{

    int VAR_1, VAR_2, VAR_3;



    VAR_1 = bytestream_get_byte(&VAR_0->stream);

    VAR_2 = (bytestream_get_byte(&VAR_0->stream) - 1) & 0xFF;

    if(VAR_1 + VAR_2 > 255){

        av_log(VAR_0->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n");

        return;

    }

    for(VAR_3 = VAR_1; VAR_3 <= VAR_1 + VAR_2; VAR_3++)

        VAR_0->pal[VAR_3] = bytestream_get_be24(&VAR_0->stream);

}

static void FUNC_0(VBDecContext *VAR_0)
{ int VAR_1, VAR_2, VAR_3; VAR_1 = bytestream_get_byte(&VAR_0->stream); VAR_2 = (bytestream_get_byte(&VAR_0->stream) - 1) & 0xFF; if(VAR_1 + VAR_2 > 255){ av_log(VAR_0->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n"); return; } for(VAR_3 = VAR_1; VAR_3 <= VAR_1 + VAR_2; VAR_3++) VAR_0->pal[VAR_3] = bytestream_get_be24(&VAR_0->stream); }