static av_cold int dirac_decode_init(AVCodecContext *avctx)

{

    DiracContext *s = avctx->priv_data;

    int i;



    s->avctx = avctx;

    s->frame_number = -1;



    if (avctx->flags&CODEC_FLAG_EMU_EDGE) {

        av_log(avctx, AV_LOG_ERROR, "Edge emulation not supported!\n");

        return AVERROR_PATCHWELCOME;

    }



    ff_dsputil_init(&s->dsp, avctx);

    ff_diracdsp_init(&s->diracdsp);



    for (i = 0; i < MAX_FRAMES; i++)

        s->all_frames[i].avframe = av_frame_alloc();



    return 0;

}

static av_cold int dirac_decode_init(AVCodecContext *avctx)

{

    DiracContext *s = avctx->priv_data;

    int i;



    s->avctx = avctx;

    s->frame_number = -1;



    if (avctx->flags&CODEC_FLAG_EMU_EDGE) {

        av_log(avctx, AV_LOG_ERROR, "Edge emulation not supported!\n");

        return AVERROR_PATCHWELCOME;

    }



    ff_dsputil_init(&s->dsp, avctx);

    ff_diracdsp_init(&s->diracdsp);



    for (i = 0; i < MAX_FRAMES; i++)

        s->all_frames[i].avframe = av_frame_alloc();



    return 0;

}

    for (i = 0; i < MAX_FRAMES; i++)
static av_cold int FUNC_0(AVCodecContext *avctx)

{

    DiracContext *s = avctx->priv_data;

    int VAR_0;



    s->avctx = avctx;

    s->frame_number = -1;



    if (avctx->flags&CODEC_FLAG_EMU_EDGE) {

        av_log(avctx, AV_LOG_ERROR, "Edge emulation not supported!\n");

        return AVERROR_PATCHWELCOME;

    }



    ff_dsputil_init(&s->dsp, avctx);

    ff_diracdsp_init(&s->diracdsp);



    for (VAR_0 = 0; VAR_0 < MAX_FRAMES; VAR_0++)

        s->all_frames[VAR_0].avframe = av_frame_alloc();



    return 0;

}

static av_cold int FUNC_0(AVCodecContext *avctx)
{ DiracContext *s = avctx->priv_data; int VAR_0; s->avctx = avctx; s->frame_number = -1; if (avctx->flags&CODEC_FLAG_EMU_EDGE) { av_log(avctx, AV_LOG_ERROR, "Edge emulation not supported!\n"); return AVERROR_PATCHWELCOME; } ff_dsputil_init(&s->dsp, avctx); ff_diracdsp_init(&s->diracdsp); for (VAR_0 = 0; VAR_0 < MAX_FRAMES; VAR_0++) s->all_frames[VAR_0].avframe = av_frame_alloc(); return 0; }