summaryrefslogtreecommitdiff
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-21 22:02:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-21 22:02:23 +0200
commit9a436ae30f10614e74fa4e1a561ce91cb0b2dd77 (patch)
tree7afb103030d86a2eb06baabadf86d66937c5ceb8 /libavcodec/dct-test.c
parent79df91bfc403e97e50f3ba0ed9acabeeb5590cd4 (diff)
parent16b7328058fa600d5158c84d9cc621a134eb88bc (diff)
downloadffmpeg-9a436ae30f10614e74fa4e1a561ce91cb0b2dd77.tar.gz
Merge commit '16b7328058fa600d5158c84d9cc621a134eb88bc'
* commit '16b7328058fa600d5158c84d9cc621a134eb88bc': build: Conditionally build and run DCT test program Conflicts: libavcodec/Makefile libavcodec/dct-test.c tests/fate/libavcodec.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index a11c91ced8..bc6b07744a 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -490,7 +490,9 @@ int main(int argc, char **argv)
for (i = 0; idct_tab_arch[i].name; i++)
if (!(~cpu_flags & idct_tab_arch[i].cpu_flag))
err |= dct_error(&idct_tab_arch[i], test, test_idct, speed, bits);
- } else {
+ }
+#if CONFIG_FDCTDSP
+ else {
for (i = 0; i < FF_ARRAY_ELEMS(fdct_tab); i++)
err |= dct_error(&fdct_tab[i], test, test_idct, speed, bits);
@@ -498,6 +500,7 @@ int main(int argc, char **argv)
if (!(~cpu_flags & fdct_tab_arch[i].cpu_flag))
err |= dct_error(&fdct_tab_arch[i], test, test_idct, speed, bits);
}
+#endif /* CONFIG_FDCTDSP */
}
if (err)