changeset 11582:23cad4157bfb libavcodec

Make code using 1d-DCT consistent with the API change
author vitor
date Sat, 03 Apr 2010 15:04:15 +0000
parents 998691d7f8f5
children 0bb7e9003dea
files binkaudio.c fft-test.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/binkaudio.c	Sat Apr 03 14:15:00 2010 +0000
+++ b/binkaudio.c	Sat Apr 03 15:04:15 2010 +0000
@@ -127,7 +127,7 @@
     if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT)
         ff_rdft_init(&s->trans.rdft, frame_len_bits, DFT_C2R);
     else if (CONFIG_BINKAUDIO_DCT_DECODER)
-        ff_dct_init(&s->trans.dct, frame_len_bits, 1);
+        ff_dct_init(&s->trans.dct, frame_len_bits, DCT_III);
     else
         return -1;
 
--- a/fft-test.c	Sat Apr 03 14:15:00 2010 +0000
+++ b/fft-test.c	Sat Apr 03 15:04:15 2010 +0000
@@ -300,10 +300,10 @@
         break;
     case TRANSFORM_DCT:
         if (do_inverse)
-            av_log(NULL, AV_LOG_INFO,"IDCT");
+            av_log(NULL, AV_LOG_INFO,"DCT_III");
         else
-            av_log(NULL, AV_LOG_INFO,"DCT");
-        ff_dct_init(d, fft_nbits, do_inverse);
+            av_log(NULL, AV_LOG_INFO,"DCT_II");
+        ff_dct_init(d, fft_nbits, do_inverse ? DCT_III : DCT_II);
         break;
     }
     av_log(NULL, AV_LOG_INFO," %d test\n", fft_size);