avcodec/fft-test: put ff_dct* code under CONFIG_DCT
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Aug 2013 18:39:22 +0000 (20:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Aug 2013 18:39:22 +0000 (20:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/fft-test.c

index 9831b2c..eee8cb2 100644 (file)
@@ -334,6 +334,7 @@ int main(int argc, char **argv)
         ff_rdft_init(r, fft_nbits, do_inverse ? IDFT_C2R : DFT_R2C);
         fft_ref_init(fft_nbits, do_inverse);
         break;
+#    if CONFIG_DCT
     case TRANSFORM_DCT:
         if (do_inverse)
             av_log(NULL, AV_LOG_INFO,"DCT_III");
@@ -341,6 +342,7 @@ int main(int argc, char **argv)
             av_log(NULL, AV_LOG_INFO,"DCT_II");
         ff_dct_init(d, fft_nbits, do_inverse ? DCT_III : DCT_II);
         break;
+#    endif
 #endif
     default:
         av_log(NULL, AV_LOG_ERROR, "Requested transform not supported\n");
@@ -483,9 +485,11 @@ int main(int argc, char **argv)
     case TRANSFORM_RDFT:
         ff_rdft_end(r);
         break;
+#    if CONFIG_DCT
     case TRANSFORM_DCT:
         ff_dct_end(d);
         break;
+#    endif
 #endif
     }