Revision 3bdc2fce

View differences:

libavcodec/fft-test.c
50 50
void fft_ref_init(int nbits, int inverse)
51 51
{
52 52
    int n, i;
53
    float c1, s1, alpha;
53
    double c1, s1, alpha;
54 54

  
55 55
    n = 1 << nbits;
56 56
    exptab = av_malloc((n / 2) * sizeof(FFTComplex));
......
69 69
void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits)
70 70
{
71 71
    int n, i, j, k, n2;
72
    float tmp_re, tmp_im, s, c;
72
    double tmp_re, tmp_im, s, c;
73 73
    FFTComplex *q;
74 74

  
75 75
    n = 1 << nbits;
......
98 98
void imdct_ref(float *out, float *in, int n)
99 99
{
100 100
    int k, i, a;
101
    float sum, f;
101
    double sum, f;
102 102

  
103 103
    for(i=0;i<n;i++) {
104 104
        sum = 0;
......
115 115
void mdct_ref(float *output, float *input, int n)
116 116
{
117 117
    int k, i;
118
    float a, s;
118
    double a, s;
119 119

  
120 120
    /* do it by hand */
121 121
    for(k=0;k<n/2;k++) {

Also available in: Unified diff