vkencoder-private: fix array layer for layered DPB

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7197>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-12-09 17:59:30 +01:00
parent 88a302a3c9
commit 0af329d505

View File

@ -1182,7 +1182,7 @@ gst_vulkan_encoder_encode (GstVulkanEncoder * self, GstVideoInfo * info,
.width = GST_VIDEO_INFO_WIDTH (info),
.height = GST_VIDEO_INFO_HEIGHT (info),
},
.baseArrayLayer = 0,
.baseArrayLayer = priv->layered_dpb ? slot_index : 0,
.imageViewBinding = pic->dpb_view->view,
};
pic->dpb_slot = (VkVideoReferenceSlotInfoKHR) {