From d42dc217ed2b0f886ffc50b26c2bbff1fee5feca Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 20 Jan 2011 18:28:16 +0000 Subject: Add memory allocation failure checks to ff_iir_filter_init_coeffs(). Signed-off-by: Mans Rullgard --- libavcodec/iirfilter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavcodec/iirfilter.h') 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); -- cgit v1.2.3