summaryrefslogtreecommitdiff
path: root/libavfilter/vf_framestep.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_framestep.c')
-rw-r--r--libavfilter/vf_framestep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c
index f848196417..ca68df66dc 100644
--- a/libavfilter/vf_framestep.c
+++ b/libavfilter/vf_framestep.c
@@ -66,7 +66,7 @@ static int config_output_props(AVFilterLink *outlink)
return 0;
}
-static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *ref)
+static int filter_frame(AVFilterLink *inlink, AVFrame *ref)
{
FrameStepContext *framestep = inlink->dst->priv;
@@ -75,7 +75,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *ref)
return ff_filter_frame(inlink->dst->outputs[0], ref);
} else {
framestep->frame_selected = 0;
- avfilter_unref_buffer(ref);
+ av_frame_free(&ref);
return 0;
}
}