From 302716fa61216ca2a1d02a4bf70c128e07098625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 20 May 2024 20:43:24 +0800 Subject: [PATCH] GPU: silence compiler warnings --- src/modules/gpu/gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/gpu/gpu.c b/src/modules/gpu/gpu.c index 5a9f4b4f3..b687b5a46 100644 --- a/src/modules/gpu/gpu.c +++ b/src/modules/gpu/gpu.c @@ -146,7 +146,7 @@ bool ffParseGPUCommandOptions(FFGPUOptions* options, const char* key, const char if (ffStrEqualsIgnCase(subKey, "detection-method")) { - options->detectionMethod = ffOptionParseEnum(key, value, (FFKeyValuePair[]) { + options->detectionMethod = (FFGPUDetectionMethod) ffOptionParseEnum(key, value, (FFKeyValuePair[]) { { "auto", FF_GPU_DETECTION_METHOD_AUTO }, { "pci", FF_GPU_DETECTION_METHOD_PCI }, { "vulkan", FF_GPU_DETECTION_METHOD_VULKAN },