diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-29 19:07:15 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-29 19:24:27 +0000 |
commit | 61274193e3bf842988ce550c312f984916dc9c7d (patch) | |
tree | e09894cf5f353189392d6a502c7682996ff5f868 /libavfilter | |
parent | 5a47f12390d2419ab502276869b388c871dde338 (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavfilter/vf_rotate.c | 2 |
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; |