mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
vulkanh265dec: fix reference set
`StdVideoDecodeH265PictureInfo.flags.IsReference` refers to section 3.132 ITU-T H.265 specification: reference picture: A picture that is a short-term reference picture or a long-term reference picture. `GstH265Picture.ref` doesn't reflect this, but we need to query the NAL type of the processed slice. This patch fixes the validation layer error `VUID-vkCmdBeginVideoCodingKHR-slotIndex-07239` while using the NVIDIA driver. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6901>
This commit is contained in:
parent
84aecab150
commit
4a88137b2f
1 changed files with 1 additions and 1 deletions
|
@ -1425,7 +1425,7 @@ gst_vulkan_h265_decoder_start_picture (GstH265Decoder * decoder,
|
|||
.flags = {
|
||||
.IrapPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type),
|
||||
.IdrPicFlag = GST_H265_IS_NAL_TYPE_IDR (slice->nalu.type),
|
||||
.IsReference = picture->ref,
|
||||
.IsReference = picture->RapPicFlag ? 1 : slice->nalu.type & 1,
|
||||
.short_term_ref_pic_set_sps_flag =
|
||||
slice->header.short_term_ref_pic_set_sps_flag,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue