GPU (Windows): fix code smells

This commit is contained in:
李通洲
2025-03-25 00:14:03 +08:00
parent 2b20ed873c
commit 8681d2f74a
4 changed files with 31 additions and 22 deletions
+2 -1
View File
@@ -215,7 +215,8 @@ const char* ffDetectIntelGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverRe
availableCount++;
}
}
*result.temp = sumValue / availableCount;
if (availableCount > 0)
*result.temp = sumValue / availableCount;
}
}