CPU (Linux): show vendor if no model name available

This commit is contained in:
李通洲
2024-01-18 15:16:46 +08:00
parent 5096180e92
commit 3992d85eb6
+4 -1
View File
@@ -209,7 +209,10 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
if (*pstart == '-')
{
ffStrbufAppendS(&cpu->name, "Unknown");
if (cpu->vendor.length > 0)
ffStrbufAppend(&cpu->name, &cpu->vendor);
else
ffStrbufAppendS(&cpu->name, "Unknown");
++pstart;
continue;
}