[FFmpeg-cvslog] avfilter/vf_rotate: use vsub for output plane height calculation
Paul B Mahol
git at videolan.org
Sun Sep 29 21:26:29 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 29 19:07:15 2013 +0000| [61274193e3bf842988ce550c312f984916dc9c7d] | committer: Paul B Mahol
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61274193e3bf842988ce550c312f984916dc9c7d
---
libavfilter/vf_rotate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c
index d13f678..f70a8ef 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;
More information about the ffmpeg-cvslog
mailing list