summaryrefslogtreecommitdiffstats
path: root/libavcodec/vulkan_hevc.c
diff options
context:
space:
mode:
authorLynne <[email protected]>2024-08-31 01:43:48 +0000
committerLynne <[email protected]>2024-09-09 07:05:44 +0200
commit66e950fcacf20ec355f8d6fbd0f8196c1c1c36dc (patch)
tree77475842762d515045c215c1693d11686fb07a6e /libavcodec/vulkan_hevc.c
parent06483d039a8ecd162374b25149796b76d1ff6e03 (diff)
vulkan_video: move imageview creation and DPB fields to common context
Shared between decoders and encoders.
Diffstat (limited to 'libavcodec/vulkan_hevc.c')
-rw-r--r--libavcodec/vulkan_hevc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c
index f4c8da2d61..68819436a4 100644
--- a/libavcodec/vulkan_hevc.c
+++ b/libavcodec/vulkan_hevc.c
@@ -136,6 +136,7 @@ static int vk_hevc_fill_pict(AVCodecContext *avctx, HEVCFrame **ref_src,
HEVCFrame *pic, int is_current, int pic_id)
{
FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data;
+ FFVulkanDecodeShared *ctx = dec->shared_ctx;
HEVCVulkanDecodePicture *hp = pic->hwaccel_picture_private;
FFVulkanDecodePicture *vkpic = &hp->vp;
@@ -161,7 +162,7 @@ static int vk_hevc_fill_pict(AVCodecContext *avctx, HEVCFrame **ref_src,
.sType = VK_STRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_INFO_KHR,
.codedOffset = (VkOffset2D){ 0, 0 },
.codedExtent = (VkExtent2D){ pic->f->width, pic->f->height },
- .baseArrayLayer = dec->layered_dpb ? pic_id : 0,
+ .baseArrayLayer = ctx->common.layered_dpb ? pic_id : 0,
.imageViewBinding = vkpic->img_view_ref,
};