FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt

This commit is contained in:
李通洲 committed 2023-09-26 09:52:10 +08:00
1 parent a4bc07cba5
commit e4c1ec916b
6 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
const char* error = parseCpuInfo(cpu, &physicalCoresBuffer, &cpuMHz, &cpuIsa, &cpuUarch);
if (error) return error;
cpu->coresPhysical = ffStrbufToUInt16(&physicalCoresBuffer, 1);
cpu->coresPhysical = (uint16_t) ffStrbufToUInt(&physicalCoresBuffer, 1);
cpu->coresLogical = (uint16_t) get_nprocs_conf();
cpu->coresOnline = (uint16_t) get_nprocs();