diff options
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r-- | libass/ass_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c index 0acc891..a9db9be 100644 --- a/libass/ass_utils.c +++ b/libass/ass_utils.c @@ -40,6 +40,9 @@ void ass_cpu_capabilities(bool *sse2, bool *avx2) *sse2 = false; *avx2 = false; + if (!ass_has_cpuid()) + return; + uint32_t eax = 0, ebx, ecx, edx; ass_get_cpuid(&eax, &ebx, &ecx, &edx); uint32_t max_leaf = eax; |