memset (priv->RefPicList1, 0, sizeof (GstVaapiPictureH265 *) * 16);
priv->RefPicList0_count = priv->RefPicList1_count = 0;
- if ((slice_hdr->type != GST_H265_B_SLICE) &&
- (slice_hdr->type != GST_H265_P_SLICE))
- return;
-
if (slice_hdr->dependent_slice_segment_flag) {
GstH265SliceHdr *tmp = &priv->prev_independent_slice_pi->data.slice_hdr;
num_ref_idx_l0_active_minus1 = tmp->num_ref_idx_l0_active_minus1;
type = slice_hdr->type;
}
+ /* decoding process for reference picture list construction needs to be
+ * invoked only for P and B slice */
+ if (type == GST_H265_I_SLICE)
+ return;
+
NumRpsCurrTempList0 =
MAX ((num_ref_idx_l0_active_minus1 + 1), priv->NumPocTotalCurr);
NumRpsCurrTempList1 =