avutil/hwcontext_cuda: fix compilation without Vulkan after last commit

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-11-12 15:54:53 -03:00
parent f4aa5c275f
commit 84fe53f6e1
1 changed files with 2 additions and 0 deletions

View File

@ -438,7 +438,9 @@ static int cuda_device_derive(AVHWDeviceContext *device_ctx,
AVCUDADeviceContext *hwctx = device_ctx->hwctx;
CudaFunctions *cu;
const char *src_uuid = NULL;
#if CONFIG_VULKAN
VkPhysicalDeviceIDProperties vk_idp;
#endif
int ret, i, device_count;
ret = cuda_flags_from_opts(device_ctx, opts, &flags);