From 43fb16cf74718fe6c393c5f20d0bfaea4e3e8cb4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 14 Oct 2014 18:30:52 +0200 Subject: avcodec/iirfilter: Change ff_iir_filter_free_coeffs() so it clears the pointers as well Signed-off-by: Michael Niedermayer --- libavcodec/psymodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/psymodel.c') diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c index 22d2497f78..e7f3353c55 100644 --- a/libavcodec/psymodel.c +++ b/libavcodec/psymodel.c @@ -138,7 +138,7 @@ void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int ch av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) { int i; - ff_iir_filter_free_coeffs(ctx->fcoeffs); + ff_iir_filter_free_coeffsp(&ctx->fcoeffs); if (ctx->fstate) for (i = 0; i < ctx->avctx->channels; i++) ff_iir_filter_free_state(ctx->fstate[i]); -- cgit v1.2.3