mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 07:10:21 +00:00
parent
07050d7bdc
commit
19587c9332
@ -155,10 +155,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
for (plane = 0; plane < rect->nb_planes; ++plane) {
|
||||
int hsub = plane == 1 || plane == 2 ? rect->hsub : 0;
|
||||
int vsub = plane == 1 || plane == 2 ? rect->vsub : 0;
|
||||
int hdiv = 1 << hsub;
|
||||
int vdiv = 1 << vsub;
|
||||
int w = rect->width / hdiv;
|
||||
int h = rect->height / vdiv;
|
||||
int w = AV_CEIL_RSHIFT(rect->width, hsub);
|
||||
int h = AV_CEIL_RSHIFT(rect->height, vsub);
|
||||
int xcenter = rect->cx * w;
|
||||
int ycenter = rect->cy * h;
|
||||
int k1 = rect->k1 * (1<<24);
|
||||
|
Loading…
Reference in New Issue
Block a user