mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avfilter/vf_weave: do not leak unused frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ac3f9be330
commit
653ca05807
@ -115,6 +115,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
return ff_filter_frame(outlink, out);
|
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[] = {
|
static const AVFilterPad weave_inputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
@ -138,6 +145,7 @@ AVFilter ff_vf_weave = {
|
|||||||
.description = NULL_IF_CONFIG_SMALL("Weave input video fields into frames."),
|
.description = NULL_IF_CONFIG_SMALL("Weave input video fields into frames."),
|
||||||
.priv_size = sizeof(WeaveContext),
|
.priv_size = sizeof(WeaveContext),
|
||||||
.priv_class = &weave_class,
|
.priv_class = &weave_class,
|
||||||
|
.uninit = uninit,
|
||||||
.inputs = weave_inputs,
|
.inputs = weave_inputs,
|
||||||
.outputs = weave_outputs,
|
.outputs = weave_outputs,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user