diff options
author | wm4 <wm4@nowhere> | 2013-04-05 23:58:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:24:55 +0200 |
commit | b20026c29bcf800318879b3036ecab633e662cd9 (patch) | |
tree | 944a86b3299ff3d0090acd8d41c708b19f751b04 | |
parent | aea2328906fc754c0d0cdea57c60d71522ae99a5 (diff) | |
download | mpv-b20026c29bcf800318879b3036ecab633e662cd9.tar.bz2 mpv-b20026c29bcf800318879b3036ecab633e662cd9.tar.xz |
af_lavrresample: context is always allocated here
-rw-r--r-- | audio/filter/af_lavrresample.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c index b5c5a089fd..4d52bb6969 100644 --- a/audio/filter/af_lavrresample.c +++ b/audio/filter/af_lavrresample.c @@ -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; |