diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-12-22 22:26:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-12-29 21:07:58 +0100 |
commit | 9f4c5bd7d23eb94afe85290e03748f52483102b8 (patch) | |
tree | b35860916678c9c90ccf3fc5be1497e690f10a60 /libavfilter/vf_swaprect.c | |
parent | 9d1ba698d2bed1d4bed731b3be62e84d72c35476 (diff) | |
download | ffmpeg-9f4c5bd7d23eb94afe85290e03748f52483102b8.tar.gz |
avfilter/vf_swaprect: Use height for vertical variables
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_swaprect.c')
-rw-r--r-- | libavfilter/vf_swaprect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index 8a983b605b..20d8e233e4 100644 --- a/libavfilter/vf_swaprect.c +++ b/libavfilter/vf_swaprect.c @@ -150,10 +150,10 @@ FF_ENABLE_DEPRECATION_WARNINGS 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] = AV_CEIL_RSHIFT(h, s->desc->log2_chroma_h); ah[0] = ah[3] = h; |