diff options
author | Lynne <dev@lynne.ee> | 2024-09-22 07:54:38 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-09-23 13:40:36 +0200 |
commit | b5184c5d45afe7ff163c26c1df1fc69e36b7e83e (patch) | |
tree | b477f849241b1a6be455e2e9ea10360b93aa47f3 | |
parent | a577d313b2c14c855ab8aa69bbe3527bd7727212 (diff) | |
download | ffmpeg-b5184c5d45afe7ff163c26c1df1fc69e36b7e83e.tar.gz |
hwcontext_vulkan: add the PROFILE_INDEPENDENT only when needed
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 23abd19eeb..6604dffd30 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2695,7 +2695,8 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) * If there's no profile list, or it has no encode operations, * then allow creating the image with no specific profile. */ if ((hwctx->usage & VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR) && - p->video_maint_1_features.videoMaintenance1) { + (p->vkctx.extensions & (FF_VK_EXT_VIDEO_ENCODE_QUEUE | + FF_VK_EXT_VIDEO_MAINTENANCE_1))) { const VkVideoProfileListInfoKHR *pl; pl = ff_vk_find_struct(hwctx->create_pnext, VK_STRUCTURE_TYPE_VIDEO_PROFILE_LIST_INFO_KHR); if (!pl) { |