Mercurial > libavcodec.hg
changeset 7140:654f063dc099 libavcodec
Use a local variable instead of mm_flags in dct-test.
author | astrange |
---|---|
date | Wed, 25 Jun 2008 17:33:55 +0000 |
parents | 03fe3194eff7 |
children | be322248a318 |
files | dct-test.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dct-test.c Wed Jun 25 14:14:58 2008 +0000 +++ b/dct-test.c Wed Jun 25 17:33:55 2008 +0000 @@ -528,14 +528,11 @@ int test_idct = 0, test_248_dct = 0; int c,i; int test=1; + int cpu_flags = mm_support(); init_fdct(); idct_mmx_init(); -#ifndef mm_flags - mm_flags = mm_support(); -#endif - for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; for(i=0;i<MAX_NEG_CROP;i++) { cropTbl[i] = 0; @@ -568,7 +565,7 @@ idct248_error("SIMPLE-C", ff_simple_idct248_put); } else { for (i=0;algos[i].name;i++) - if (algos[i].is_idct == test_idct && !(~mm_flags & algos[i].mm_support)) { + if (algos[i].is_idct == test_idct && !(~cpu_flags & algos[i].mm_support)) { dct_error (algos[i].name, algos[i].is_idct, algos[i].func, algos[i].ref, algos[i].format, test); } }