From 61274193e3bf842988ce550c312f984916dc9c7d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 29 Sep 2013 19:07:15 +0000 Subject: avfilter/vf_rotate: use vsub for output plane height calculation Output plane height used horizontal instead of vertical subsampling. This is just cosmetic change as filter does not support formats where vertical subsampling does not match horizontal one. Signed-off-by: Paul B Mahol --- libavfilter/vf_rotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_rotate.c') diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c index d13f678dc3..f70a8ef274 100644 --- a/libavfilter/vf_rotate.c +++ b/libavfilter/vf_rotate.c @@ -337,7 +337,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) int inw = FF_CEIL_RSHIFT(inlink->w, hsub); int inh = FF_CEIL_RSHIFT(inlink->h, vsub); int outw = FF_CEIL_RSHIFT(outlink->w, hsub); - int outh = FF_CEIL_RSHIFT(outlink->h, hsub); + int outh = FF_CEIL_RSHIFT(outlink->h, vsub); const int xi = -outw/2 * c; const int yi = outw/2 * s; -- cgit v1.2.3