[FFmpeg-cvslog] avcodec/fft-test: put ff_dct* code under CONFIG_DCT

Michael Niedermayer git at videolan.org
Mon Aug 26 21:16:04 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug 26 20:39:22 2013 +0200| [fcaf5fa2ea3871a8f126f40801ab240faad668a5] | committer: Michael Niedermayer

avcodec/fft-test: put ff_dct* code under CONFIG_DCT

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcaf5fa2ea3871a8f126f40801ab240faad668a5
---

 libavcodec/fft-test.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 9831b2c..eee8cb2 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -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
     }
 



More information about the ffmpeg-cvslog mailing list