mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/af_join: Free inpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
ad5d056dc3
commit
d2e72473df
@ -194,10 +194,8 @@ static av_cold int join_init(AVFilterContext *ctx)
|
|||||||
if (!pad.name)
|
if (!pad.name)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
|
if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
|
||||||
av_freep(&pad.name);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -212,10 +210,6 @@ static av_cold void join_uninit(AVFilterContext *ctx)
|
|||||||
av_frame_free(&s->input_frames[i]);
|
av_frame_free(&s->input_frames[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < ctx->nb_inputs; i++) {
|
|
||||||
av_freep(&ctx->input_pads[i].name);
|
|
||||||
}
|
|
||||||
|
|
||||||
av_freep(&s->channels);
|
av_freep(&s->channels);
|
||||||
av_freep(&s->buffers);
|
av_freep(&s->buffers);
|
||||||
av_freep(&s->input_frames);
|
av_freep(&s->input_frames);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user