History

avfilter/vf_stack: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit ad3b1fd1 parent 07aacf51 file · +1 −7Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_stack.c+1−7
@@ -123,10 +123,8 @@ static av_cold int init(AVFilterContext *ctx) · 122 unmodified lines
123123 if (!pad.name)
124124 return AVERROR(ENOMEM);
125125
126− if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
127− av_freep(&pad.name);
126+ if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
128127 return ret;
129− }
130128 }
131129
132130 return 0;
@@ -372,14 +370,10 @@ static int config_output(AVFilterLink *outlink) · 239 unmodified lines
372370 static av_cold void uninit(AVFilterContext *ctx)
373371 {
374372 StackContext *s = ctx->priv;
375− int i;
376373
377374 ff_framesync_uninit(&s->fs);
378375 av_freep(&s->frames);
379376 av_freep(&s->items);
380−
381− for (i = 0; i < ctx->nb_inputs; i++)
382− av_freep(&ctx->input_pads[i].name);
383377 }
384378
385379 static int activate(AVFilterContext *ctx)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t