aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-07-29 10:11:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-07-29 10:11:12 +0000
commit3bdc2fcea6d160adb1319c8b8a4328de948c97ba (patch)
tree71dc16055bf9249063d1de1d74c2f55bc7a2a0e6
parent86c624af1bc76af5d4d186d22589969ac4384558 (diff)
downloadffmpeg-3bdc2fcea6d160adb1319c8b8a4328de948c97ba.tar.gz
make the reference code use double instead of float where it is easy
Originally committed as revision 9827 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/fft-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index fd3346b9bd..f0529c1b23 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -50,7 +50,7 @@ FFTComplex *exptab;
void fft_ref_init(int nbits, int inverse)
{
int n, i;
- float c1, s1, alpha;
+ double c1, s1, alpha;
n = 1 << nbits;
exptab = av_malloc((n / 2) * sizeof(FFTComplex));
@@ -69,7 +69,7 @@ void fft_ref_init(int nbits, int inverse)
void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits)
{
int n, i, j, k, n2;
- float tmp_re, tmp_im, s, c;
+ double tmp_re, tmp_im, s, c;
FFTComplex *q;
n = 1 << nbits;
@@ -98,7 +98,7 @@ void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits)
void imdct_ref(float *out, float *in, int n)
{
int k, i, a;
- float sum, f;
+ double sum, f;
for(i=0;i<n;i++) {
sum = 0;
@@ -115,7 +115,7 @@ void imdct_ref(float *out, float *in, int n)
void mdct_ref(float *output, float *input, int n)
{
int k, i;
- float a, s;
+ double a, s;
/* do it by hand */
for(k=0;k<n/2;k++) {