You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_afir: Free inpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -792,9 +792,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
av_frame_free(&s->ir[i]);
|
||||
}
|
||||
|
||||
for (unsigned i = 1; i < ctx->nb_inputs; i++)
|
||||
av_freep(&ctx->input_pads[i].name);
|
||||
|
||||
av_frame_free(&s->video);
|
||||
}
|
||||
|
||||
@@ -849,12 +846,10 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
if (!pad.name)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
ret = ff_append_inpad(ctx, &pad);
|
||||
if (ret < 0) {
|
||||
av_freep(&pad.name);
|
||||
ret = ff_append_inpad_free_name(ctx, &pad);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
pad = (AVFilterPad) {
|
||||
.name = "default",
|
||||
|
Reference in New Issue
Block a user