mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-20 22:40:47 +00:00
avfilter/f_segment: Free outpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b8e31568df
commit
f6c6a51d98
@ -137,10 +137,8 @@ static av_cold int init(AVFilterContext *ctx, enum AVMediaType type)
|
||||
if (!pad.name)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
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 0;
|
||||
@ -245,9 +243,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
SegmentContext *s = ctx->priv;
|
||||
|
||||
av_freep(&s->points);
|
||||
|
||||
for (unsigned i = 0; i < ctx->nb_outputs; i++)
|
||||
av_freep(&ctx->output_pads[i].name);
|
||||
}
|
||||
|
||||
#define OFFSET(x) offsetof(SegmentContext, x)
|
||||
|
Loading…
Reference in New Issue
Block a user