mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avfilter/vf_swaprect: Use height for vertical variables
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9f4c5bd7d2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a01849d11e
commit
6c8b1116a8
@ -147,10 +147,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
w = dw; h = dh; x1[0] = dx1; y1[0] = dy1; x2[0] = dx2; y2[0] = dy2;
|
||||
|
||||
x1[0] = av_clip(x1[0], 0, inlink->w - 1);
|
||||
y1[0] = av_clip(y1[0], 0, inlink->w - 1);
|
||||
y1[0] = av_clip(y1[0], 0, inlink->h - 1);
|
||||
|
||||
x2[0] = av_clip(x2[0], 0, inlink->w - 1);
|
||||
y2[0] = av_clip(y2[0], 0, inlink->w - 1);
|
||||
y2[0] = av_clip(y2[0], 0, inlink->h - 1);
|
||||
|
||||
ah[1] = ah[2] = FF_CEIL_RSHIFT(h, s->desc->log2_chroma_h);
|
||||
ah[0] = ah[3] = h;
|
||||
|
Loading…
Reference in New Issue
Block a user