mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +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:
parent
59b465e4df
commit
c54c8836cf
@ -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,11 +846,9 @@ 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user