changeset 969:d12d0c93d1e2 libavcodec

compile fixes
author bellard
date Tue, 07 Jan 2003 17:43:50 +0000
parents 64f1a11b5f86
children a521e0ecc5a8
files fft-test.c
diffstat 1 files changed, 6 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/fft-test.c	Tue Jan 07 17:41:43 2003 +0000
+++ b/fft-test.c	Tue Jan 07 17:43:50 2003 +0000
@@ -6,27 +6,6 @@
 
 int mm_flags;
 
-void *av_malloc(int size)
-{
-    void *ptr;
-    ptr = malloc(size);
-    return ptr;
-}
-
-void av_free(void *ptr)
-{
-    /* XXX: this test should not be needed on most libcs */
-    if (ptr)
-        free(ptr);
-}
-
-/* cannot call it directly because of 'void **' casting is not automatic */
-void __av_freep(void **ptr)
-{
-    av_free(*ptr);
-    *ptr = NULL;
-}
-
 /* reference fft */
 
 #define MUL16(a,b) ((a) * (b))
@@ -209,7 +188,7 @@
             printf("IMDCT");
         else
             printf("MDCT");
-        mdct_init(m, fft_nbits, do_inverse);
+        ff_mdct_init(m, fft_nbits, do_inverse);
     } else {
         if (do_inverse)
             printf("IFFT");
@@ -233,12 +212,12 @@
     if (do_mdct) {
         if (do_inverse) {
             imdct_ref((float *)tab_ref, (float *)tab1, fft_size);
-            imdct_calc(m, tab2, (float *)tab1, tabtmp);
+            ff_imdct_calc(m, tab2, (float *)tab1, tabtmp);
             check_diff((float *)tab_ref, tab2, fft_size);
         } else {
             mdct_ref((float *)tab_ref, (float *)tab1, fft_size);
             
-            mdct_calc(m, tab2, (float *)tab1, tabtmp);
+            ff_mdct_calc(m, tab2, (float *)tab1, tabtmp);
 
             check_diff((float *)tab_ref, tab2, fft_size / 2);
         }
@@ -265,9 +244,9 @@
             for(it=0;it<nb_its;it++) {
                 if (do_mdct) {
                     if (do_inverse) {
-                        imdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
+                        ff_imdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
                     } else {
-                        mdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
+                        ff_mdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
                     }
                 } else {
                     memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
@@ -286,7 +265,7 @@
     }
     
     if (do_mdct) {
-        mdct_end(m);
+        ff_mdct_end(m);
     } else {
         fft_end(s);
     }