diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-01-07 17:43:50 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-01-07 17:43:50 +0000 |
commit | ea0f841a54dacd8ec9444f5367aa90ae200beb83 (patch) | |
tree | f0c2bb51df04e5bccafc65554fd1a4f189afb6cf /libavcodec/fft-test.c | |
parent | e1958604fdbf67aa8c300d3700c8805db039919d (diff) | |
download | ffmpeg-ea0f841a54dacd8ec9444f5367aa90ae200beb83.tar.gz |
compile fixes
Originally committed as revision 1411 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r-- | libavcodec/fft-test.c | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index 3015c7a709..55bcd8a188 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) } if (do_mdct) { - mdct_end(m); + ff_mdct_end(m); } else { fft_end(s); } |