Commit 7d5297b3 authored by Stefano Sabatini's avatar Stefano Sabatini

vf_split: fix various nits

parent eb97d4d6
/*
* Video splitter
* copyright (c) 2007 Bobby Bingham
* Copyright (c) 2007 Bobby Bingham
*
* This file is part of FFmpeg.
*
......@@ -19,32 +18,36 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file
* Video splitter
*/
#include "avfilter.h"
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
{
avfilter_start_frame(link->dst->outputs[0],
avfilter_start_frame(inlink->dst->outputs[0],
avfilter_ref_buffer(picref, ~AV_PERM_WRITE));
avfilter_start_frame(link->dst->outputs[1],
avfilter_start_frame(inlink->dst->outputs[1],
avfilter_ref_buffer(picref, ~AV_PERM_WRITE));
}
static void end_frame(AVFilterLink *link)
static void end_frame(AVFilterLink *inlink)
{
avfilter_end_frame(link->dst->outputs[0]);
avfilter_end_frame(link->dst->outputs[1]);
avfilter_end_frame(inlink->dst->outputs[0]);
avfilter_end_frame(inlink->dst->outputs[1]);
avfilter_unref_buffer(link->cur_buf);
avfilter_unref_buffer(inlink->cur_buf);
}
static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
{
avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
avfilter_draw_slice(link->dst->outputs[1], y, h, slice_dir);
avfilter_draw_slice(inlink->dst->outputs[0], y, h, slice_dir);
avfilter_draw_slice(inlink->dst->outputs[1], y, h, slice_dir);
}
AVFilter avfilter_vf_split =
{
AVFilter avfilter_vf_split = {
.name = "split",
.inputs = (AVFilterPad[]) {{ .name = "default",
......@@ -60,4 +63,3 @@ AVFilter avfilter_vf_split =
.type = AVMEDIA_TYPE_VIDEO, },
{ .name = NULL}},
};
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