static int roq_decode_init(AVCodecContext *avctx)

{

    RoqContext *s = avctx->priv_data;



    s->avctx = avctx;

    s->width = avctx->width;

    s->height = avctx->height;

    s->last_frame    = &s->frames[0];

    s->current_frame = &s->frames[1];

    avctx->pix_fmt = PIX_FMT_YUV444P;

    dsputil_init(&s->dsp, avctx);



    return 0;

}

static int roq_decode_init(AVCodecContext *avctx)

{

    RoqContext *s = avctx->priv_data;



    s->avctx = avctx;

    s->width = avctx->width;

    s->height = avctx->height;

    s->last_frame    = &s->frames[0];

    s->current_frame = &s->frames[1];

    avctx->pix_fmt = PIX_FMT_YUV444P;

    dsputil_init(&s->dsp, avctx);



    return 0;

}

static int FUNC_0(AVCodecContext *VAR_0)

{

    RoqContext *s = VAR_0->priv_data;



    s->VAR_0 = VAR_0;

    s->width = VAR_0->width;

    s->height = VAR_0->height;

    s->last_frame    = &s->frames[0];

    s->current_frame = &s->frames[1];

    VAR_0->pix_fmt = PIX_FMT_YUV444P;

    dsputil_init(&s->dsp, VAR_0);



    return 0;

}

static int FUNC_0(AVCodecContext *VAR_0)
{ RoqContext *s = VAR_0->priv_data; s->VAR_0 = VAR_0; s->width = VAR_0->width; s->height = VAR_0->height; s->last_frame    = &s->frames[0]; s->current_frame = &s->frames[1]; VAR_0->pix_fmt = PIX_FMT_YUV444P; dsputil_init(&s->dsp, VAR_0); return 0; }