static int get_ref_idx(AVFrame *frame)

{

    FrameDecodeData *fdd;

    NVDECFrame *cf;



    if (!frame || !frame->private_ref)

        return -1;



    fdd = (FrameDecodeData*)frame->private_ref->data;

    cf  = (NVDECFrame*)fdd->hwaccel_priv;



    return cf->idx;

}

static int get_ref_idx(AVFrame *frame)

{

    FrameDecodeData *fdd;

    NVDECFrame *cf;



    if (!frame || !frame->private_ref)

        return -1;



    fdd = (FrameDecodeData*)frame->private_ref->data;

    cf  = (NVDECFrame*)fdd->hwaccel_priv;



    return cf->idx;

}

static int FUNC_0(AVFrame *VAR_0)

{

    FrameDecodeData *fdd;

    NVDECFrame *cf;



    if (!VAR_0 || !VAR_0->private_ref)

        return -1;



    fdd = (FrameDecodeData*)VAR_0->private_ref->data;

    cf  = (NVDECFrame*)fdd->hwaccel_priv;



    return cf->idx;

}

static int FUNC_0(AVFrame *VAR_0)
{ FrameDecodeData *fdd; NVDECFrame *cf; if (!VAR_0 || !VAR_0->private_ref)
return -1; fdd = (FrameDecodeData*)VAR_0->private_ref->data; cf  = (NVDECFrame*)fdd->hwaccel_priv; return cf->idx; }