int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device,

                          VdpGetProcAddress *get_proc, unsigned flags)

{

    VDPAUHWContext *hwctx;



    if (flags != 0)

        return AVERROR(EINVAL);



    if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx)))

        return AVERROR(ENOMEM);



    hwctx = avctx->hwaccel_context;



    memset(hwctx, 0, sizeof(*hwctx));

    hwctx->context.decoder  = VDP_INVALID_HANDLE;

    hwctx->device           = device;

    hwctx->get_proc_address = get_proc;

    hwctx->reset            = 1;

    return 0;

}

int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device,

                          VdpGetProcAddress *get_proc, unsigned flags)

{

    VDPAUHWContext *hwctx;



    if (flags != 0)

        return AVERROR(EINVAL);



    if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx)))

        return AVERROR(ENOMEM);



    hwctx = avctx->hwaccel_context;



    memset(hwctx, 0, sizeof(*hwctx));

    hwctx->context.decoder  = VDP_INVALID_HANDLE;

    hwctx->device           = device;

    hwctx->get_proc_address = get_proc;

    hwctx->reset            = 1;

    return 0;

}

    if (flags != 0)
int FUNC_0(AVCodecContext *VAR_0, VdpDevice VAR_1,

                          VdpGetProcAddress *VAR_2, unsigned VAR_3)

{

    VDPAUHWContext *hwctx;



    if (VAR_3 != 0)

        return AVERROR(EINVAL);



    if (av_reallocp(&VAR_0->hwaccel_context, sizeof(*hwctx)))

        return AVERROR(ENOMEM);



    hwctx = VAR_0->hwaccel_context;



    memset(hwctx, 0, sizeof(*hwctx));

    hwctx->context.decoder  = VDP_INVALID_HANDLE;

    hwctx->VAR_1           = VAR_1;

    hwctx->get_proc_address = VAR_2;

    hwctx->reset            = 1;

    return 0;

}

int FUNC_0(AVCodecContext *VAR_0, VdpDevice VAR_1,
VdpGetProcAddress *VAR_2, unsigned VAR_3)
{ VDPAUHWContext *hwctx; if (VAR_3 != 0)
return AVERROR(EINVAL); if (av_reallocp(&VAR_0->hwaccel_context, sizeof(*hwctx)))
return AVERROR(ENOMEM); hwctx = VAR_0->hwaccel_context; memset(hwctx, 0, sizeof(*hwctx)); hwctx->context.decoder  = VDP_INVALID_HANDLE; hwctx->VAR_1           = VAR_1; hwctx->get_proc_address = VAR_2; hwctx->reset            = 1; return 0; }