[FFmpeg-cvslog] vf_split: fix various nits
Stefano Sabatini
git at videolan.org
Sun May 22 02:53:54 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sun May 22 01:18:59 2011 +0200| [7d5297b3436623fe52f9424d0bc3ae03fbfe164d] | committer: Stefano Sabatini
vf_split: fix various nits
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d5297b3436623fe52f9424d0bc3ae03fbfe164d
---
libavfilter/vf_split.c | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/libavfilter/vf_split.c b/libavfilter/vf_split.c
index 635c928..2cab8fa 100644
--- a/libavfilter/vf_split.c
+++ b/libavfilter/vf_split.c
@@ -1,6 +1,5 @@
/*
- * 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}},
};
-
More information about the ffmpeg-cvslog
mailing list