[FFmpeg-cvslog] r22792 - in trunk/libavcodec: binkaudio.c fft-test.c

vitor subversion
Sat Apr 3 17:04:16 CEST 2010


Author: vitor
Date: Sat Apr  3 17:04:15 2010
New Revision: 22792

Log:
Make code using 1d-DCT consistent with the API change

Modified:
   trunk/libavcodec/binkaudio.c
   trunk/libavcodec/fft-test.c

Modified: trunk/libavcodec/binkaudio.c
==============================================================================
--- trunk/libavcodec/binkaudio.c	Sat Apr  3 16:15:00 2010	(r22791)
+++ trunk/libavcodec/binkaudio.c	Sat Apr  3 17:04:15 2010	(r22792)
@@ -127,7 +127,7 @@ static av_cold int decode_init(AVCodecCo
     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;
 

Modified: trunk/libavcodec/fft-test.c
==============================================================================
--- trunk/libavcodec/fft-test.c	Sat Apr  3 16:15:00 2010	(r22791)
+++ trunk/libavcodec/fft-test.c	Sat Apr  3 17:04:15 2010	(r22792)
@@ -300,10 +300,10 @@ int main(int argc, char **argv)
         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);



More information about the ffmpeg-cvslog mailing list