aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/iirfilter.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-09 10:16:00 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-09 10:16:00 +0000
commit181b3363043fae8ff05803f792c1cdd8cafd8c41 (patch)
tree425bf642f36ddb5373fed6bfe4857c650761035b /libavcodec/iirfilter.c
parent0d73abb86ab73d668bd314e68f4c21c86e95391a (diff)
downloadffmpeg-181b3363043fae8ff05803f792c1cdd8cafd8c41.tar.gz
Fix declarations of complex numbers
Complex numbers must be declared using a base type of float, double, or long double. Originally committed as revision 19390 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/iirfilter.c')
-rw-r--r--libavcodec/iirfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index 62c2a61cd5..1d9e9a0a2a 100644
--- a/libavcodec/iirfilter.c
+++ b/libavcodec/iirfilter.c
@@ -56,7 +56,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type
int i, j, size;
FFIIRFilterCoeffs *c;
double wa;
- complex p[MAXORDER + 1];
+ double complex p[MAXORDER + 1];
if(filt_type != FF_FILTER_TYPE_BUTTERWORTH || filt_mode != FF_FILTER_MODE_LOWPASS)
return NULL;
@@ -78,7 +78,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type
for(i = 1; i <= order; i++)
p[i] = 0.0;
for(i = 0; i < order; i++){
- complex zp;
+ double complex zp;
double th = (i + (order >> 1) + 0.5) * M_PI / order;
zp = cexp(I*th) * wa;
zp = (zp + 2.0) / (zp - 2.0);