summaryrefslogtreecommitdiff
path: root/libavfilter/vf_rotate.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-29 19:07:15 +0000
committerPaul B Mahol <onemda@gmail.com>2013-09-29 19:24:27 +0000
commit61274193e3bf842988ce550c312f984916dc9c7d (patch)
treee09894cf5f353189392d6a502c7682996ff5f868 /libavfilter/vf_rotate.c
parent5a47f12390d2419ab502276869b388c871dde338 (diff)
downloadffmpeg-61274193e3bf842988ce550c312f984916dc9c7d.tar.gz
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 <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_rotate.c')
-rw-r--r--libavfilter/vf_rotate.c2
1 files changed, 1 insertions, 1 deletions
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;