mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avutil/hwcontext_cuda: fix mixed declarations and code warning
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
92f9b28ed8
commit
f4aa5c275f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user