aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec_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/nvdec_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/nvdec_hevc.c')
-rw-r--r--libavcodec/nvdec_hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvdec_hevc.c b/libavcodec/nvdec_hevc.c
index 0bebca7568..ce66ddcfb7 100644
--- a/libavcodec/nvdec_hevc.c
+++ b/libavcodec/nvdec_hevc.c
@@ -187,7 +187,7 @@ static int nvdec_hevc_start_frame(AVCodecContext *avctx,
.NumBitsForShortTermRPSInSlice = s->sh.short_term_rps ? s->sh.short_term_ref_pic_set_size : 0,
.NumDeltaPocsOfRefRpsIdx = s->sh.short_term_rps ? s->sh.short_term_rps->rps_idx_num_delta_pocs : 0,
- .NumPocTotalCurr = ff_hevc_frame_nb_refs(s),
+ .NumPocTotalCurr = ff_hevc_frame_nb_refs(&s->sh, pps),
.NumPocStCurrBefore = s->rps[ST_CURR_BEF].nb_refs,
.NumPocStCurrAfter = s->rps[ST_CURR_AFT].nb_refs,
.NumPocLtCurr = s->rps[LT_CURR].nb_refs,