You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
hwcontext_vulkan: Fix build with older Vulkan headers
This commit is contained in:
@@ -2906,7 +2906,7 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc)
|
|||||||
if (p->dev_is_nvidia &&
|
if (p->dev_is_nvidia &&
|
||||||
(((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||
|
(((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||
|
||||||
(av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 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 */
|
/* Image usage flags */
|
||||||
if (!hwctx->usage) {
|
if (!hwctx->usage) {
|
||||||
|
Reference in New Issue
Block a user