summaryrefslogtreecommitdiff
path: root/libavcodec/psymodel.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-14 18:30:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-14 18:30:52 +0200
commit43fb16cf74718fe6c393c5f20d0bfaea4e3e8cb4 (patch)
treee2802a6f4f117a2a117720bfbd7e2542efd399bb /libavcodec/psymodel.c
parent9946da49766384dd6e25585160da0b454d4a5cbc (diff)
downloadffmpeg-43fb16cf74718fe6c393c5f20d0bfaea4e3e8cb4.tar.gz
avcodec/iirfilter: Change ff_iir_filter_free_coeffs() so it clears the pointers as well
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/psymodel.c')
-rw-r--r--libavcodec/psymodel.c2
1 files changed, 1 insertions, 1 deletions
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]);