int i;
static int rv10_decode_init(AVCodecContext *avctx){    MpegEncContext *s = avctx->priv_data;    int i;    static int done;//    s->avctx= avctx;    s->out_format = FMT_H263;    s->width = avctx->width;    s->height = avctx->height;    s->h263_rv10 = 1;    s->rv10_version = avctx->sub_id;    if (MPV_common_init(s) < 0)        return -1;    h263_decode_init_vlc(s);    /* init rv vlc */    if (!done) {        init_vlc(&rv_dc_lum, 9, 256,                  rv_lum_bits, 1, 1,                 rv_lum_code, 2, 2);        init_vlc(&rv_dc_chrom, 9, 256,                  rv_chrom_bits, 1, 1,                 rv_chrom_code, 2, 2);        done = 1;    }    return 0;}