[FFmpeg-cvslog] avutil/hwcontext_cuda: fix compilation without Vulkan after last commit

James Almer git at videolan.org
Sat Nov 12 20:55:19 EET 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Nov 12 15:54:53 2022 -0300| [84fe53f6e1a33dde78bc58e56408155e7d44cc78] | committer: James Almer

avutil/hwcontext_cuda: fix compilation without Vulkan after last commit

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84fe53f6e1a33dde78bc58e56408155e7d44cc78
---

 libavutil/hwcontext_cuda.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index a553d15b69..5ae7711c94 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -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);



More information about the ffmpeg-cvslog mailing list