aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_cuda.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-11-12 15:51:27 -0300
committerJames Almer <jamrial@gmail.com>2022-11-12 15:52:10 -0300
commitf4aa5c275f288d8e3f237fba1c1f507f1ca8421f (patch)
tree436a846b58e31e1b6b70542f57b4f678589d2bec /libavutil/hwcontext_cuda.c
parent92f9b28ed84a77138105475beba16c146bdaf984 (diff)
downloadffmpeg-f4aa5c275f288d8e3f237fba1c1f507f1ca8421f.tar.gz
avutil/hwcontext_cuda: fix mixed declarations and code warning
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/hwcontext_cuda.c')
-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