Commit 653ca058 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_weave: do not leak unused frame

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ac3f9be3
......@@ -115,6 +115,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return ff_filter_frame(outlink, out);
}
static av_cold void uninit(AVFilterContext *ctx)
{
WeaveContext *s = ctx->priv;
av_frame_free(&s->prev);
}
static const AVFilterPad weave_inputs[] = {
{
.name = "default",
......@@ -138,6 +145,7 @@ AVFilter ff_vf_weave = {
.description = NULL_IF_CONFIG_SMALL("Weave input video fields into frames."),
.priv_size = sizeof(WeaveContext),
.priv_class = &weave_class,
.uninit = uninit,
.inputs = weave_inputs,
.outputs = weave_outputs,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment