Revision 181b3363 libavcodec/iirfilter.c

View differences:

libavcodec/iirfilter.c
56 56
    int i, j, size;
57 57
    FFIIRFilterCoeffs *c;
58 58
    double wa;
59
    complex p[MAXORDER + 1];
59
    double complex p[MAXORDER + 1];
60 60

  
61 61
    if(filt_type != FF_FILTER_TYPE_BUTTERWORTH || filt_mode != FF_FILTER_MODE_LOWPASS)
62 62
        return NULL;
......
78 78
    for(i = 1; i <= order; i++)
79 79
        p[i] = 0.0;
80 80
    for(i = 0; i < order; i++){
81
        complex zp;
81
        double complex zp;
82 82
        double th = (i + (order >> 1) + 0.5) * M_PI / order;
83 83
        zp = cexp(I*th) * wa;
84 84
        zp = (zp + 2.0) / (zp - 2.0);

Also available in: Unified diff