History

avfilter/vf_signature: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 07aacf51 parent 65884bd1 file · +1 −5Browse files

Unified · Split

libavfilter/vf_signature.c+1−5
@@ -664,10 +664,8 @@ static av_cold int init(AVFilterContext *ctx) · 663 unmodified lines
664664
665665 if (!pad.name)
666666 return AVERROR(ENOMEM);
667− if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
668− av_freep(&pad.name);
667+ if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
669668 return ret;
670− }
671669
672670 sc = &(sic->streamcontexts[i]);
673671
@@ -730,8 +728,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 56 unmodified lines
730728 }
731729 av_freep(&sic->streamcontexts);
732730 }
733− for (unsigned i = 0; i < ctx->nb_inputs; i++)
734− av_freep(&ctx->input_pads[i].name);
735731 }
736732
737733 static int config_output(AVFilterLink *outlink)

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