Commit 6e1b0cda authored by Michael Niedermayer's avatar Michael Niedermayer

fft-test: fix all pointer type warnings.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 87688727
...@@ -145,7 +145,7 @@ static void mdct_ref(FFTSample *output, FFTSample *input, int nbits) ...@@ -145,7 +145,7 @@ static void mdct_ref(FFTSample *output, FFTSample *input, int nbits)
} }
#if CONFIG_FFT_FLOAT #if CONFIG_FFT_FLOAT
static void idct_ref(float *output, float *input, int nbits) static void idct_ref(FFTSample *output, FFTSample *input, int nbits)
{ {
int n = 1<<nbits; int n = 1<<nbits;
int k, i; int k, i;
...@@ -161,7 +161,7 @@ static void idct_ref(float *output, float *input, int nbits) ...@@ -161,7 +161,7 @@ static void idct_ref(float *output, float *input, int nbits)
output[i] = 2 * s / n; output[i] = 2 * s / n;
} }
} }
static void dct_ref(float *output, float *input, int nbits) static void dct_ref(FFTSample *output, FFTSample *input, int nbits)
{ {
int n = 1<<nbits; int n = 1<<nbits;
int k, i; int k, i;
...@@ -401,11 +401,11 @@ int main(int argc, char **argv) ...@@ -401,11 +401,11 @@ int main(int argc, char **argv)
break; break;
case TRANSFORM_DCT: case TRANSFORM_DCT:
memcpy(tab, tab1, fft_size * sizeof(FFTComplex)); memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
d->dct_calc(d, tab); d->dct_calc(d, (FFTSample *)tab);
if (do_inverse) { if (do_inverse) {
idct_ref(tab_ref, tab1, fft_nbits); idct_ref((FFTSample*)tab_ref, (FFTSample *)tab1, fft_nbits);
} else { } else {
dct_ref(tab_ref, tab1, fft_nbits); dct_ref((FFTSample*)tab_ref, (FFTSample *)tab1, fft_nbits);
} }
err = check_diff((float *)tab_ref, (float *)tab, fft_size, 1.0); err = check_diff((float *)tab_ref, (float *)tab, fft_size, 1.0);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment