aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vdpau_hevc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-06-01 16:36:16 +0200
committerAnton Khirnov <anton@khirnov.net>2024-06-11 17:39:35 +0200
commit381b70e173f9d55a05ef7174f1a3709951dc3ba3 (patch)
tree7181a2995a5c6ae91de3c4a31b3d6fa5d14a7dd3 /libavcodec/vdpau_hevc.c
parent07eb60c0da34d146b72064ec1f316d64a6ac7ebb (diff)
downloadffmpeg-381b70e173f9d55a05ef7174f1a3709951dc3ba3.tar.gz
lavc/hevcdec: do not pass HEVCContext to ff_hevc_frame_nb_refs()
Pass the only things required from it - slice header and PPS - explicitly. Will be useful in the following commits to avoid mofiying HEVCContext in hls_slice_header().
Diffstat (limited to 'libavcodec/vdpau_hevc.c')
-rw-r--r--libavcodec/vdpau_hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau_hevc.c b/libavcodec/vdpau_hevc.c
index 3db7ec156a..b9e922ecfc 100644
--- a/libavcodec/vdpau_hevc.c
+++ b/libavcodec/vdpau_hevc.c
@@ -205,7 +205,7 @@ static int vdpau_hevc_start_frame(AVCodecContext *avctx,
}
}
/* See section 7.4.7.2 of the specification. */
- info->NumPocTotalCurr = ff_hevc_frame_nb_refs(h);
+ info->NumPocTotalCurr = ff_hevc_frame_nb_refs(&h->sh, pps);
if (sh->short_term_ref_pic_set_sps_flag == 0 && sh->short_term_rps) {
/* Corresponds to specification field, NumDeltaPocs[RefRpsIdx].
Only applicable when short_term_ref_pic_set_sps_flag == 0.