mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avfilter/f_select: 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
f6c6a51d98
commit
64133506f7
@ -192,11 +192,9 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
pad.type = ctx->filter->inputs[0].type;
|
pad.type = ctx->filter->inputs[0].type;
|
||||||
pad.request_frame = request_frame;
|
pad.request_frame = request_frame;
|
||||||
if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
|
if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0)
|
||||||
av_freep(&pad.name);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -432,14 +430,10 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
static av_cold void uninit(AVFilterContext *ctx)
|
static av_cold void uninit(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
SelectContext *select = ctx->priv;
|
SelectContext *select = ctx->priv;
|
||||||
int i;
|
|
||||||
|
|
||||||
av_expr_free(select->expr);
|
av_expr_free(select->expr);
|
||||||
select->expr = NULL;
|
select->expr = NULL;
|
||||||
|
|
||||||
for (i = 0; i < ctx->nb_outputs; i++)
|
|
||||||
av_freep(&ctx->output_pads[i].name);
|
|
||||||
|
|
||||||
if (select->do_scene_detect) {
|
if (select->do_scene_detect) {
|
||||||
av_frame_free(&select->prev_picref);
|
av_frame_free(&select->prev_picref);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user