diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-06 14:05:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-06 14:27:45 +0200 |
commit | 6b1df5544e8df9ad95512c638df2580856389fae (patch) | |
tree | 14daf84587adfa145cd8313f33c978dd42a46b7c | |
parent | fe0157a19ac01616f6e8db5cef5360661adbe395 (diff) | |
download | ffmpeg-6b1df5544e8df9ad95512c638df2580856389fae.tar.gz |
avutil/cpu: check av_parse_cpu_caps() table during cpu-test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c index 9c043badd8..1cd0522dc6 100644 --- a/libavutil/cpu.c +++ b/libavutil/cpu.c @@ -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; |