You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02:00
hwcontext_vulkan: Fix build with older Vulkan headers
(cherry picked from commit 4a42e5a1e2
)
This commit is contained in:
@@ -2908,7 +2908,7 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc)
|
||||
if (p->dev_is_nvidia &&
|
||||
(((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||
|
||||
(av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 1)))
|
||||
supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT;
|
||||
supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT;
|
||||
|
||||
/* Image usage flags */
|
||||
if (!hwctx->usage) {
|
||||
|
Reference in New Issue
Block a user