Commit 577bfb15 authored by Jonathan Lennox's avatar Jonathan Lennox Committed by Jean-Marc Valin
Browse files

Fix struct initialization of CPU_Feature structure.

parent 33cf9e2f
...@@ -99,11 +99,15 @@ static void opus_cpu_feature_check(CPU_Feature *cpu_feature) ...@@ -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_SSE2 = (info[3] & (1 << 26)) != 0;
cpu_feature->HW_SSE41 = (info[2] & (1 << 19)) != 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) int opus_select_arch(void)
{ {
CPU_Feature cpu_feature = {0}; CPU_Feature cpu_feature;
int arch; int arch;
opus_cpu_feature_check(&cpu_feature); opus_cpu_feature_check(&cpu_feature);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment