Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/hwcontext_cuda.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index b96460920f..a553d15b69 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -438,6 +438,7 @@ static int cuda_device_derive(AVHWDeviceContext *device_ctx,
AVCUDADeviceContext *hwctx = device_ctx->hwctx;
CudaFunctions *cu;
const char *src_uuid = NULL;
+ VkPhysicalDeviceIDProperties vk_idp;
int ret, i, device_count;
ret = cuda_flags_from_opts(device_ctx, opts, &flags);
@@ -445,7 +446,7 @@ static int cuda_device_derive(AVHWDeviceContext *device_ctx,
goto error;
#if CONFIG_VULKAN
- VkPhysicalDeviceIDProperties vk_idp = {
+ vk_idp = (VkPhysicalDeviceIDProperties) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES,
};
#endif