static int nvdec_h264_decode_init(AVCodecContext *avctx)

{

    const H264Context *h = avctx->priv_data;

    const SPS       *sps = h->ps.sps;

    return ff_nvdec_decode_init(avctx, sps->ref_frame_count + sps->num_reorder_frames);

}

static int nvdec_h264_decode_init(AVCodecContext *avctx)

{

    const H264Context *h = avctx->priv_data;

    const SPS       *sps = h->ps.sps;

    return ff_nvdec_decode_init(avctx, sps->ref_frame_count + sps->num_reorder_frames);

}

static int FUNC_0(AVCodecContext *VAR_0)

{

    const H264Context *VAR_1 = VAR_0->priv_data;

    const SPS       *VAR_2 = VAR_1->ps.VAR_2;

    return ff_nvdec_decode_init(VAR_0, VAR_2->ref_frame_count + VAR_2->num_reorder_frames);

}

static int FUNC_0(AVCodecContext *VAR_0)
{ const H264Context *VAR_1 = VAR_0->priv_data; const SPS       *VAR_2 = VAR_1->ps.VAR_2; return ff_nvdec_decode_init(VAR_0, VAR_2->ref_frame_count + VAR_2->num_reorder_frames); }