From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 5FD74477F1 for ; Fri, 22 Dec 2023 21:45:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A00468D302; Fri, 22 Dec 2023 23:45:12 +0200 (EET) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 61F5268D2CE for ; Fri, 22 Dec 2023 23:45:05 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id BE7C6C0003 for ; Fri, 22 Dec 2023 21:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1703281504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=ntz/aUFhfqjPzRMadPSz/51rRbLgZzv+BUPv5IoOlKo=; b=O9AAs4uQHP1tM3OSYTVR3qwvNrjc4V4GBXevAHexo4qs4RiVsq7qHLtVJgbvn0C66vxQh9 Ty8chtQmtwLh37j/de8k0pOHrq2G5/agIfgTai0RC8pTawcvOW3G9OegeaaRS+Xl0r6FeN iglSbftbrs1dXxxRFg3+hDH6F7oM5hnB2AemsEKH5IkruWLuzo+5yCu0b4SI9ApQj2Y+Sm uxDzYbKnGAmEejxomoSPBmUosFJmNHT4CKI8q6fMgJ8YubC6SePB++anAeL8v2jlriYvC4 6sTo/MPx7ozZewRiw1EbIYG3KNQgQtYVIhgQKFvP4YdLmYobjNd+Zglbf/EnEQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 22 Dec 2023 22:45:01 +0100 Message-Id: <20231222214502.24596-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231222214502.24596-1-michael@niedermayer.cc> References: <20231222214502.24596-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/4] avfilter/vf_swaprect: Use height for vertical variables X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Michael Niedermayer --- libavfilter/vf_swaprect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index 8a983b605bf..20d8e233e45 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; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".