1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

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

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;