summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2020-11-30 18:00:30 +0800
committerHe Junyan <junyan.he@intel.com>2020-11-30 18:00:38 +0800
commitba58557c140f5bb2155e1b73252ea779de23130b (patch)
tree4aea0307dd9960918532c67ce266b72914cde079 /gst-libs
parentd94b8644283b62d64124ea7b607ccc1c7878263e (diff)
libs: decoder: H265: Fix a typo in scc reference setting.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/402>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
index e725995e..ad258885 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
@@ -1737,7 +1737,7 @@ init_picture_refs (GstVaapiDecoderH265 * decoder,
if (pps->pps_scc_extension_params.pps_curr_pic_ref_enabled_flag
&& !ref_pic_list_modification->ref_pic_list_modification_flag_l0
&& (NumRpsCurrTempList0 > num_ref_idx_l0_active_minus1 + 1))
- priv->RefPicList0[rIdx++] = picture;
+ priv->RefPicList0[num_ref_idx_l0_active_minus1] = picture;
priv->RefPicList0_count = rIdx;
if (type == GST_H265_B_SLICE) {