diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-01 13:31:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-04 23:09:45 +0400 |
commit | 6fee1b90ce3bf4fbdfde7016e0890057c9000487 (patch) | |
tree | c1b37ab53c8caab6b47702ec4451038c5d2882e4 /libavcodec/iirfilter.c | |
parent | 72e228b274a98af1aba9588415d0cd87fde44663 (diff) |
avcodec: Add av_cold attributes to init functions missing them
Diffstat (limited to 'libavcodec/iirfilter.c')
-rw-r--r-- | libavcodec/iirfilter.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c index acfa9048b4..40a543da4c 100644 --- a/libavcodec/iirfilter.c +++ b/libavcodec/iirfilter.c @@ -26,6 +26,7 @@ #include "iirfilter.h" #include <math.h> +#include "libavutil/attributes.h" #include "libavutil/common.h" /** @@ -48,10 +49,11 @@ typedef struct FFIIRFilterState{ /// maximum supported filter order #define MAXORDER 30 -static int butterworth_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c, - enum IIRFilterMode filt_mode, - int order, float cutoff_ratio, - float stopband) +static av_cold int butterworth_init_coeffs(void *avc, + struct FFIIRFilterCoeffs *c, + enum IIRFilterMode filt_mode, + int order, float cutoff_ratio, + float stopband) { int i, j; double wa; @@ -113,9 +115,9 @@ static int butterworth_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c, return 0; } -static int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c, - enum IIRFilterMode filt_mode, int order, - float cutoff_ratio, float stopband) +static av_cold int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c, + enum IIRFilterMode filt_mode, int order, + float cutoff_ratio, float stopband) { double cos_w0, sin_w0; double a0, x0, x1; |