libs: decoder: H265: Fix a typo in scc reference setting.
authorHe Junyan <junyan.he@intel.com>
Mon, 30 Nov 2020 10:00:30 +0000 (18:00 +0800)
committerHe Junyan <junyan.he@intel.com>
Mon, 30 Nov 2020 10:00:38 +0000 (18:00 +0800)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/402>

gst-libs/gst/vaapi/gstvaapidecoder_h265.c

index e725995..ad25888 100644 (file)
@@ -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) {