diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-22 01:20:53 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-22 02:43:46 +0200 |
commit | de1100a00a483d967ed82c46792e1553b5bdc332 (patch) | |
tree | b604d78a8b8aabb5f4c39158d0ff91b1ddaf0afc | |
parent | 88fc2e411ecf66b8a8e1b41b027b51bf2b5434b0 (diff) | |
download | ffmpeg-streaming-de1100a00a483d967ed82c46792e1553b5bdc332.zip ffmpeg-streaming-de1100a00a483d967ed82c46792e1553b5bdc332.tar.gz |
vf_split: define draw_slice() before end_frame()
Improve logical coherence, fix nit.
-rw-r--r-- | libavfilter/vf_split.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/vf_split.c b/libavfilter/vf_split.c index 4ef959a..75b9c6a 100644 --- a/libavfilter/vf_split.c +++ b/libavfilter/vf_split.c @@ -33,6 +33,12 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) avfilter_ref_buffer(picref, ~AV_PERM_WRITE)); } +static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) +{ + avfilter_draw_slice(inlink->dst->outputs[0], y, h, slice_dir); + avfilter_draw_slice(inlink->dst->outputs[1], y, h, slice_dir); +} + static void end_frame(AVFilterLink *inlink) { avfilter_end_frame(inlink->dst->outputs[0]); @@ -41,12 +47,6 @@ static void end_frame(AVFilterLink *inlink) avfilter_unref_buffer(inlink->cur_buf); } -static void draw_slice(AVFilterLink *inlink, int y, int h, int 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 = { .name = "split", .description = NULL_IF_CONFIG_SMALL("Pass on the input to two outputs."), |