[FFmpeg-cvslog] avfilter/af_acrossover: Free outpads' names generically
Andreas Rheinhardt
git at videolan.org
Sun Aug 22 19:06:15 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Aug 11 21:58:39 2021 +0200| [59b465e4dfc0bb85409bfa777b591d23476ec82b] | committer: Andreas Rheinhardt
avfilter/af_acrossover: Free outpads' names generically
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59b465e4dfc0bb85409bfa777b591d23476ec82b
---
libavfilter/af_acrossover.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c
index edb257d634..8306d532ac 100644
--- a/libavfilter/af_acrossover.c
+++ b/libavfilter/af_acrossover.c
@@ -191,10 +191,8 @@ static av_cold int init(AVFilterContext *ctx)
return AVERROR(ENOMEM);
pad.name = name;
- if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
- av_freep(&pad.name);
+ if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0)
return ret;
- }
}
return ret;
@@ -539,13 +537,9 @@ fail:
static av_cold void uninit(AVFilterContext *ctx)
{
AudioCrossoverContext *s = ctx->priv;
- int i;
av_freep(&s->fdsp);
av_frame_free(&s->xover);
-
- for (i = 0; i < ctx->nb_outputs; i++)
- av_freep(&ctx->output_pads[i].name);
}
static const AVFilterPad inputs[] = {
More information about the ffmpeg-cvslog
mailing list