aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-06-25 17:33:55 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-06-25 17:33:55 +0000
commitdafe88245768ee96a7cd61899d31f55af9af944e (patch)
treeb3b6a56d3f1efc41b4324c12853c2b1faf749a69 /libavcodec/dct-test.c
parent40617a6d05f9eb1de9c6745509e3735d76c446f3 (diff)
downloadffmpeg-dafe88245768ee96a7cd61899d31f55af9af944e.tar.gz
Use a local variable instead of mm_flags in dct-test.
Originally committed as revision 13967 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index e96c895c21..0868c2e3f8 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -528,14 +528,11 @@ int main(int argc, char **argv)
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 @@ int main(int argc, char **argv)
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);
}
}