History

avfilter/af_amix: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 0e936381 parent 414c1b91 file · +1 −6Browse files

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

Unified · Split

libavfilter/af_amix.c+1−6
@@ -553,10 +553,8 @@ static av_cold int init(AVFilterContext *ctx) · 552 unmodified lines
553553 if (!pad.name)
554554 return AVERROR(ENOMEM);
555555
556− if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
557− av_freep(&pad.name);
556+ if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
558557 return ret;
559− }
560558 }
561559
562560 s->fdsp = avpriv_float_dsp_alloc(0);
@@ -589,9 +587,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 26 unmodified lines
589587 av_freep(&s->scale_norm);
590588 av_freep(&s->weights);
591589 av_freep(&s->fdsp);
592−
593− for (i = 0; i < ctx->nb_inputs; i++)
594− av_freep(&ctx->input_pads[i].name);
595590 }
596591
597592 static int query_formats(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