[FFmpeg-cvslog] r19390 - trunk/libavcodec/iirfilter.c
mru
subversion
Thu Jul 9 12:16:00 CEST 2009
Author: mru
Date: Thu Jul 9 12:16:00 2009
New Revision: 19390
Log:
Fix declarations of complex numbers
Complex numbers must be declared using a base type of float, double,
or long double.
Modified:
trunk/libavcodec/iirfilter.c
Modified: trunk/libavcodec/iirfilter.c
==============================================================================
--- trunk/libavcodec/iirfilter.c Thu Jul 9 09:29:03 2009 (r19389)
+++ trunk/libavcodec/iirfilter.c Thu Jul 9 12:16:00 2009 (r19390)
@@ -56,7 +56,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_
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_
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);
More information about the ffmpeg-cvslog
mailing list