diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-01-20 21:28:16 +0300 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-20 21:35:13 +0300 |
commit | d42dc217ed2b0f886ffc50b26c2bbff1fee5feca (patch) | |
tree | 79358252cbf0585640e462475ff9509e2f7fd625 /libavcodec/iirfilter.h | |
parent | f0f54c297f1283025d423c4aed817ae31ba549cb (diff) |
Add memory allocation failure checks to ff_iir_filter_init_coeffs().
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/iirfilter.h')
-rw-r--r-- | libavcodec/iirfilter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/iirfilter.h b/libavcodec/iirfilter.h index fd26166862..f7b71f3567 100644 --- a/libavcodec/iirfilter.h +++ b/libavcodec/iirfilter.h @@ -49,6 +49,8 @@ enum IIRFilterMode{ /** * Initialize filter coefficients. * + * @param avc a pointer to an arbitrary struct of which the first + * field is a pointer to an AVClass struct * @param filt_type filter type (e.g. Butterworth) * @param filt_mode filter mode (e.g. lowpass) * @param order filter order @@ -58,7 +60,8 @@ enum IIRFilterMode{ * * @return pointer to filter coefficients structure or NULL if filter cannot be created */ -struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type, +struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc, + enum IIRFilterType filt_type, enum IIRFilterMode filt_mode, int order, float cutoff_ratio, float stopband, float ripple); |