aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fft-test.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:36:36 +0000
committerLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:36:36 +0000
commit0a570e826d7cb6602219236e20a15d85ab68b073 (patch)
tree6ac326a85a91f45414a4ccbf19f1c72cc757cf55 /libavcodec/fft-test.c
parente8dd7b0c9a3d61a2a5be7e763e5bdde486cdfc29 (diff)
downloadffmpeg-0a570e826d7cb6602219236e20a15d85ab68b073.tar.gz
remove mdct tmp buffer
Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r--libavcodec/fft-test.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 980dc86885..1ab653fc3d 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -177,7 +177,7 @@ void help(void)
int main(int argc, char **argv)
{
FFTComplex *tab, *tab1, *tab_ref;
- FFTSample *tabtmp, *tab2;
+ FFTSample *tab2;
int it, i, c;
int do_speed = 0;
int do_mdct = 0;
@@ -214,7 +214,6 @@ int main(int argc, char **argv)
tab = av_malloc(fft_size * sizeof(FFTComplex));
tab1 = av_malloc(fft_size * sizeof(FFTComplex));
tab_ref = av_malloc(fft_size * sizeof(FFTComplex));
- tabtmp = av_malloc(fft_size / 2 * sizeof(FFTSample));
tab2 = av_malloc(fft_size * sizeof(FFTSample));
if (do_mdct) {
@@ -246,12 +245,12 @@ int main(int argc, char **argv)
if (do_mdct) {
if (do_inverse) {
imdct_ref((float *)tab_ref, (float *)tab1, fft_nbits);
- ff_imdct_calc(m, tab2, (float *)tab1, tabtmp);
+ ff_imdct_calc(m, tab2, (float *)tab1);
check_diff((float *)tab_ref, tab2, fft_size);
} else {
mdct_ref((float *)tab_ref, (float *)tab1, fft_nbits);
- ff_mdct_calc(m, tab2, (float *)tab1, tabtmp);
+ ff_mdct_calc(m, tab2, (float *)tab1);
check_diff((float *)tab_ref, tab2, fft_size / 2);
}
@@ -278,9 +277,9 @@ int main(int argc, char **argv)
for(it=0;it<nb_its;it++) {
if (do_mdct) {
if (do_inverse) {
- ff_imdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
+ ff_imdct_calc(m, (float *)tab, (float *)tab1);
} else {
- ff_mdct_calc(m, (float *)tab, (float *)tab1, tabtmp);
+ ff_mdct_calc(m, (float *)tab, (float *)tab1);
}
} else {
memcpy(tab, tab1, fft_size * sizeof(FFTComplex));