static void *alloc_buffer(FFVAContext *vactx, int type, unsigned int size, uint32_t *buf_id)

{

    void *data = NULL;



    *buf_id = 0;

    if (vaCreateBuffer(vactx->display, vactx->context_id,

                       type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS)

        vaMapBuffer(vactx->display, *buf_id, &data);



    return data;

}

static void *alloc_buffer(FFVAContext *vactx, int type, unsigned int size, uint32_t *buf_id)

{

    void *data = NULL;



    *buf_id = 0;

    if (vaCreateBuffer(vactx->display, vactx->context_id,

                       type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS)

        vaMapBuffer(vactx->display, *buf_id, &data);



    return data;

}

static void *FUNC_0(FFVAContext *VAR_0, int VAR_1, unsigned int VAR_2, uint32_t *VAR_3)

{

    void *VAR_4 = NULL;



    *VAR_3 = 0;

    if (vaCreateBuffer(VAR_0->display, VAR_0->context_id,

                       VAR_1, VAR_2, 1, NULL, VAR_3) == VA_STATUS_SUCCESS)

        vaMapBuffer(VAR_0->display, *VAR_3, &VAR_4);



    return VAR_4;

}

static void *FUNC_0(FFVAContext *VAR_0, int VAR_1, unsigned int VAR_2, uint32_t *VAR_3)
{ void *VAR_4 = NULL; *VAR_3 = 0; if (vaCreateBuffer(VAR_0->display, VAR_0->context_id,
VAR_1, VAR_2, 1, NULL, VAR_3) == VA_STATUS_SUCCESS)
vaMapBuffer(VAR_0->display, *VAR_3, &VAR_4); return VAR_4; }