diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-22 01:18:59 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-22 02:43:46 +0200 |
commit | 7d5297b3436623fe52f9424d0bc3ae03fbfe164d (patch) | |
tree | 6f931baef2c912e5e6e7da0ae6fed1caf508016e /libavfilter | |
parent | eb97d4d611efdb8480a5a8dcfbc35860b9eda638 (diff) | |
download | ffmpeg-7d5297b3436623fe52f9424d0bc3ae03fbfe164d.tar.gz |
vf_split: fix various nits
Diffstat (limited to 'libavfilter')
-rw-r--r-- | 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 635c9284f8..2cab8fad1b 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}}, }; - |