summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2021-07-16 15:24:11 +0800
committerHe Junyan <junyan.he@intel.com>2021-07-16 23:05:18 +0800
commit4299596d16870b52ae4efc1e49154ec028c1fc7e (patch)
tree826c972809b6012ee507a25a1306d79679e62508 /sys
parent6a9f84a2dec6755bb9b53a50bec6d9611b8c0541 (diff)
downloadgstreamer-plugins-bad-4299596d16870b52ae4efc1e49154ec028c1fc7e.tar.gz
codecs: h265decoder: Fix a typo of NumPocTotalCurr when process ref pic list.
We should use the NumPocTotalCurr value stored in decoder, which is a calculated valid value, rather than use the invalid value in the slice header. Most of the time, the NumPocTotalCurr is 0 and make the tmp_refs a very short length, and causes the decoder's wrong result. By the way, the NumPocTotalCurr is not the correct name specified in H265 spec, its name should be NumPicTotalCurr. We change it to the correct name. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2414>
Diffstat (limited to 'sys')
-rw-r--r--sys/nvcodec/gstnvh265dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nvcodec/gstnvh265dec.c b/sys/nvcodec/gstnvh265dec.c
index 725b9ad0c..6c9c43543 100644
--- a/sys/nvcodec/gstnvh265dec.c
+++ b/sys/nvcodec/gstnvh265dec.c
@@ -740,7 +740,7 @@ gst_nv_h265_dec_start_picture (GstH265Decoder * decoder,
slice_header->short_term_ref_pic_set_size;
h265_params->NumDeltaPocsOfRefRpsIdx =
slice_header->short_term_ref_pic_sets.NumDeltaPocsOfRefRpsIdx;
- h265_params->NumPocTotalCurr = decoder->NumPocTotalCurr;
+ h265_params->NumPocTotalCurr = decoder->NumPicTotalCurr;
h265_params->NumPocStCurrBefore = decoder->NumPocStCurrBefore;
h265_params->NumPocStCurrAfter = decoder->NumPocStCurrAfter;
h265_params->NumPocLtCurr = decoder->NumPocLtCurr;