aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-11 22:02:44 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-22 16:15:31 +0200
commit41c98bfe0a6fc614e3e4046f2fba8e9ebf75a134 (patch)
tree4037c7b19d6c88794d7cfc5f7eeaac865db22ac5
parent0ce19ecd2833080b3f6bd0d9d0838e4eccb8e792 (diff)
downloadffmpeg-41c98bfe0a6fc614e3e4046f2fba8e9ebf75a134.tar.gz
avfilter/src_movie: Free outpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/src_movie.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index ea5bb90255..0d63c1e4bc 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -306,10 +306,8 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
return AVERROR(ENOMEM);
pad.config_props = movie_config_output_props;
pad.request_frame = movie_request_frame;
- if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
- av_freep(&pad.name);
+ if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0)
return ret;
- }
if ( movie->st[i].st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
!movie->st[i].st->codecpar->channel_layout) {
ret = guess_channel_layout(&movie->st[i], i, ctx);
@@ -334,7 +332,6 @@ static av_cold void movie_uninit(AVFilterContext *ctx)
int i;
for (i = 0; i < ctx->nb_outputs; i++) {
- av_freep(&ctx->output_pads[i].name);
if (movie->st[i].st)
avcodec_free_context(&movie->st[i].codec_ctx);
}