From a13a543797a6607b72ba32188dc6a09cbe887e0e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 4 Dec 2009 23:26:13 +0000 Subject: Add a slice_dir parameter to avfilter_draw_slice(). Avoid the need to implement slice direction detection code, thus reducing code duplication. See the thread: "[FFmpeg-devel] [PATCH] Add a slice_dir parameter to avfilter_start_frame()". Originally committed as revision 20734 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/vf_vflip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/vf_vflip.c') diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index ae7b9b475f..2080053d20 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -78,11 +78,11 @@ static void start_frame(AVFilterLink *link, AVFilterPicRef *picref) avfilter_start_frame(link->dst->outputs[0], ref2); } -static void draw_slice(AVFilterLink *link, int y, int h) +static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir) { AVFilterContext *ctx = link->dst; - avfilter_draw_slice(ctx->outputs[0], link->h - (y+h), h); + avfilter_draw_slice(ctx->outputs[0], link->h - (y+h), h, -1 * slice_dir); } AVFilter avfilter_vf_vflip = { -- cgit v1.2.3