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]);
|
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);
|
av_frame_free(&s->video);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -849,12 +846,10 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
if (!pad.name)
|
if (!pad.name)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
ret = ff_append_inpad(ctx, &pad);
|
ret = ff_append_inpad_free_name(ctx, &pad);
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
av_freep(&pad.name);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
pad = (AVFilterPad) {
|
pad = (AVFilterPad) {
|
||||||
.name = "default",
|
.name = "default",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user