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
553 if (!pad.name)553 if (!pad.name)
554 return AVERROR(ENOMEM);554 return AVERROR(ENOMEM);
555 555
556 if ((ret = ff_append_inpad(ctx, &pad)) < 0) {556 if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
557 av_freep(&pad.name);
558 return ret;557 return ret;
559 }
560 }558 }
561 559
562 s->fdsp = avpriv_float_dsp_alloc(0);560 s->fdsp = avpriv_float_dsp_alloc(0);
@@ -589,9 +587,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 26 unmodified lines
589 av_freep(&s->scale_norm);587 av_freep(&s->scale_norm);
590 av_freep(&s->weights);588 av_freep(&s->weights);
591 av_freep(&s->fdsp);589 av_freep(&s->fdsp);
592
593 for (i = 0; i < ctx->nb_inputs; i++)
594 av_freep(&ctx->input_pads[i].name);
595}590}
596 591
597static int query_formats(AVFilterContext *ctx)592static 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