aboutsummaryrefslogtreecommitdiff
path: root/celt/x86
diff options
context:
space:
mode:
authorJonathan Lennox <jonathan@vidyo.com>2015-08-03 17:04:24 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2015-09-01 17:21:31 -0400
commit577bfb159afac7a0f3817d3656ffef4a77d18e06 (patch)
tree5e211b7773cf49f1338a82a66f1f57540c6bb420 /celt/x86
parent33cf9e2f47067c6545c12a0876af5eb9ce116455 (diff)
downloadlibopus-577bfb159afac7a0f3817d3656ffef4a77d18e06.tar.gz
Fix struct initialization of CPU_Feature structure.
Diffstat (limited to 'celt/x86')
-rw-r--r--celt/x86/x86cpu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/celt/x86/x86cpu.c b/celt/x86/x86cpu.c
index 090e23df..9f570af2 100644
--- a/celt/x86/x86cpu.c
+++ b/celt/x86/x86cpu.c
@@ -99,11 +99,15 @@ static void opus_cpu_feature_check(CPU_Feature *cpu_feature)
cpu_feature->HW_SSE2 = (info[3] & (1 << 26)) != 0;
cpu_feature->HW_SSE41 = (info[2] & (1 << 19)) != 0;
}
+ else {
+ cpu_feature->HW_SSE2 = 0;
+ cpu_feature->HW_SSE41 = 0;
+ }
}
int opus_select_arch(void)
{
- CPU_Feature cpu_feature = {0};
+ CPU_Feature cpu_feature;
int arch;
opus_cpu_feature_check(&cpu_feature);