static int nvdec_hevc_decode_init(AVCodecContext *avctx)

{

    const HEVCContext *s = avctx->priv_data;

    const HEVCSPS *sps = s->ps.sps;

    return ff_nvdec_decode_init(avctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);

}

static int nvdec_hevc_decode_init(AVCodecContext *avctx)

{

    const HEVCContext *s = avctx->priv_data;

    const HEVCSPS *sps = s->ps.sps;

    return ff_nvdec_decode_init(avctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);

}

static int FUNC_0(AVCodecContext *VAR_0)

{

    const HEVCContext *VAR_1 = VAR_0->priv_data;

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

    return ff_nvdec_decode_init(VAR_0, VAR_2->temporal_layer[VAR_2->max_sub_layers - 1].max_dec_pic_buffering + 1);

}

static int FUNC_0(AVCodecContext *VAR_0)
{ const HEVCContext *VAR_1 = VAR_0->priv_data; const HEVCSPS *VAR_2 = VAR_1->ps.VAR_2; return ff_nvdec_decode_init(VAR_0, VAR_2->temporal_layer[VAR_2->max_sub_layers - 1].max_dec_pic_buffering + 1); }