af_lavrresample: context is always allocated here

This commit is contained in:
wm4 2013-04-05 23:58:08 +02:00
parent aea2328906
commit b20026c29b
1 changed files with 1 additions and 2 deletions

View File

@ -153,8 +153,7 @@ static int control(struct af_instance *af, int cmd, void *arg)
af->delay = out->nch * s->opts.filter_size / FFMIN(af->mul, 1);
if (needs_lavrctx_reconfigure(s, in, out)) {
if (s->avrctx)
avresample_close(s->avrctx);
avresample_close(s->avrctx);
s->ctx.out_rate = out->rate;
s->ctx.in_rate = in->rate;