summaryrefslogtreecommitdiff
path: root/libavcodec/iirfilter.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-14 18:52:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-14 20:46:15 +0200
commitf43ac027232f6aeb826d7c29b1dfca9b3876f3ed (patch)
treea4397fa74ada462b5bff34d114682ca8c63061fc /libavcodec/iirfilter.h
parent43fb16cf74718fe6c393c5f20d0bfaea4e3e8cb4 (diff)
avcodec/iirfilter: Make ff_iir_filter_free_state() also zero the freed pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/iirfilter.h')
-rw-r--r--libavcodec/iirfilter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/iirfilter.h b/libavcodec/iirfilter.h
index cc9a661703..6f7bba67ac 100644
--- a/libavcodec/iirfilter.h
+++ b/libavcodec/iirfilter.h
@@ -107,11 +107,11 @@ struct FFIIRFilterState* ff_iir_filter_init_state(int order);
void ff_iir_filter_free_coeffsp(struct FFIIRFilterCoeffs **coeffs);
/**
- * Free filter state.
+ * Free and zero filter state.
*
- * @param state pointer allocated with ff_iir_filter_init_state()
+ * @param state pointer to pointer allocated with ff_iir_filter_init_state()
*/
-void ff_iir_filter_free_state(struct FFIIRFilterState *state);
+void ff_iir_filter_free_statep(struct FFIIRFilterState **state);
/**
* Perform IIR filtering on signed 16-bit input samples.