static av_cold int dfa_decode_init(AVCodecContext *avctx)

{

    DfaContext *s = avctx->priv_data;

    int ret;



    avctx->pix_fmt = PIX_FMT_PAL8;



    if ((ret = av_image_check_size(avctx->width, avctx->height, 0, avctx)) < 0)

        return ret;



    s->frame_buf = av_mallocz(avctx->width * avctx->height + AV_LZO_OUTPUT_PADDING);

    if (!s->frame_buf)

        return AVERROR(ENOMEM);



    return 0;

}

static av_cold int dfa_decode_init(AVCodecContext *avctx)

{

    DfaContext *s = avctx->priv_data;

    int ret;



    avctx->pix_fmt = PIX_FMT_PAL8;



    if ((ret = av_image_check_size(avctx->width, avctx->height, 0, avctx)) < 0)

        return ret;



    s->frame_buf = av_mallocz(avctx->width * avctx->height + AV_LZO_OUTPUT_PADDING);

    if (!s->frame_buf)

        return AVERROR(ENOMEM);



    return 0;

}

static av_cold int FUNC_0(AVCodecContext *avctx)

{

    DfaContext *s = avctx->priv_data;

    int VAR_0;



    avctx->pix_fmt = PIX_FMT_PAL8;



    if ((VAR_0 = av_image_check_size(avctx->width, avctx->height, 0, avctx)) < 0)

        return VAR_0;



    s->frame_buf = av_mallocz(avctx->width * avctx->height + AV_LZO_OUTPUT_PADDING);

    if (!s->frame_buf)

        return AVERROR(ENOMEM);



    return 0;

}

static av_cold int FUNC_0(AVCodecContext *avctx)
{ DfaContext *s = avctx->priv_data; int VAR_0; avctx->pix_fmt = PIX_FMT_PAL8; if ((VAR_0 = av_image_check_size(avctx->width, avctx->height, 0, avctx)) < 0)
return VAR_0; s->frame_buf = av_mallocz(avctx->width * avctx->height + AV_LZO_OUTPUT_PADDING); if (!s->frame_buf)
return AVERROR(ENOMEM); return 0; }