Skip to content

Commit

Permalink
avutil/cpu: check av_parse_cpu_caps() table during cpu-test
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Aug 6, 2014
1 parent fe0157a commit 6b1df55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libavutil/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,15 @@ int main(int argc, char **argv)
int cpu_flags_eff;
int cpu_count = av_cpu_count();
char threads[5] = "auto";
int i;

for(i = 0; cpu_flag_tab[i].flag; i++) {
unsigned tmp = 0;
if (av_parse_cpu_caps(&tmp, cpu_flag_tab[i].name) < 0) {
fprintf(stderr, "Table missing %s\n", cpu_flag_tab[i].name);
return 4;
}
}

if (cpu_flags_raw < 0)
return 1;
Expand Down

0 comments on commit 6b1df55

Please sign in to comment.