diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-07-21 05:27:45 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-07-21 05:32:35 -0700 |
commit | 16b7328058fa600d5158c84d9cc621a134eb88bc (patch) | |
tree | 11fbbf90a38a424088fb94e9947c4449e13fe413 /libavcodec/dct-test.c | |
parent | bd499d9af668aef979ec9f3f3215b8dd508c7ec1 (diff) | |
download | ffmpeg-16b7328058fa600d5158c84d9cc621a134eb88bc.tar.gz |
build: Conditionally build and run DCT test program
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r-- | libavcodec/dct-test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 979fc0b184..a531c88569 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -443,7 +443,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); - } 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); @@ -451,6 +453,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); } +#endif /* CONFIG_FDCTDSP */ } if (err) |