mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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>
This commit is contained in:
parent
5a47f12390
commit
61274193e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user