s->avctx= avctx;
static int rv10_decode_init(AVCodecContext *avctx){    MpegEncContext *s = avctx->priv_data;    static int done;//    s->avctx= avctx;    s->out_format = FMT_H263;    s->width = avctx->width;    s->height = avctx->height;    s->h263_rv10 = 1;    if(avctx->extradata_size >= 8){        switch(((uint32_t*)avctx->extradata)[1]){        case 0x10000000:            s->rv10_version= 0;            s->h263_long_vectors=0;            break;        case 0x10003000:            s->rv10_version= 3;            s->h263_long_vectors=1;            break;        case 0x10003001:            s->rv10_version= 3;            s->h263_long_vectors=0;            break;        default:            fprintf(stderr, "unknown header %X\n", ((uint32_t*)avctx->extradata)[1]);        }    }else{    //  for backward compatibility         s->rv10_version= avctx->sub_id;    }        s->flags= avctx->flags;    if (MPV_common_init(s) < 0)        return -1;    h263_decode_init_vlc(s);    s->y_dc_scale_table=    s->c_dc_scale_table= ff_mpeg1_dc_scale_table;    /* init rv vlc */    if (!done) {        init_vlc(&rv_dc_lum, DC_VLC_BITS, 256,                  rv_lum_bits, 1, 1,                 rv_lum_code, 2, 2);        init_vlc(&rv_dc_chrom, DC_VLC_BITS, 256,                  rv_chrom_bits, 1, 1,                 rv_chrom_code, 2, 2);        done = 1;    }    return 0;}