diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-02-18 11:57:48 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-07-18 06:14:42 -0700 |
commit | cb44b21da1f59923be577f08c267ec270529be97 (patch) | |
tree | c85211cd402ff87b82fd64863ac7a43e21a0aaa0 | |
parent | 7e18a727d2c2a19f22fcf68875d1b05fd2eafcef (diff) | |
download | ffmpeg-cb44b21da1f59923be577f08c267ec270529be97.tar.gz |
dct-test: Move cpu_flags variable out of global scope
-rw-r--r-- | libavcodec/dct-test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index d0177f588f..4e670241b5 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -66,8 +66,6 @@ struct algo { int nonspec; }; -static int cpu_flags; - static const struct algo fdct_tab[] = { { "REF-DBL", ff_ref_fdct, NO_PERM }, { "FAAN", ff_faandct, NO_PERM }, @@ -470,8 +468,6 @@ int main(int argc, char **argv) int speed = 0; int err = 0; - cpu_flags = av_get_cpu_flags(); - ff_ref_dct_init(); idct_mmx_init(); @@ -504,6 +500,7 @@ int main(int argc, char **argv) if (test_248_dct) { idct248_error("SIMPLE-C", ff_simple_idct248_put, speed); } else { + const int cpu_flags = av_get_cpu_flags(); const struct algo *algos = test_idct ? idct_tab : fdct_tab; for (i = 0; algos[i].name; i++) if (!(~cpu_flags & algos[i].mm_support)) { |