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 9CB5049DA1 for ; Sat, 11 May 2024 01:57:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D261D68D54E; Sat, 11 May 2024 04:57:08 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C73CE68D4B7 for ; Sat, 11 May 2024 04:57:01 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1FBB840004 for ; Sat, 11 May 2024 01:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1715392621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8pZ1VTCyFzUsvWD7QI80U8L08ZH1aas6Dw7WF/hVV64=; b=DDhGosutqbv2MoYgvwX90FReHGrvl2bbb0t4HuK2dYtqZxXdDksvrUpo/L9aPU/qHXm2N3 rNl8iPi73HxlTWKidipZwtYSQVxwmV8EIzAuYcTUuraKYV0csReLmCQlFGtZW501m+Hjng ER2OSubfKr3xH9qNhlmSk1L7pGhL/yM2sZ5EBgBW2LMJNVzz7pSUTCc42gJiUao3HAUJz+ lJjKVBtKhhTha+/w6EAqMXSX6ub24ftklYTNRO+KRRGjgBEubt7azubbWGyr/ZHa7aYO8J G0hjaIdS69EZ6V/ymxBSHMDEsvJIj1ECiQz3bB7YI7hOxKcY/W6BSPLduTy8vA== Date: Sat, 11 May 2024 03:57:00 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240511015700.GS6420@pb2> References: <20240509064918.6654-1-cus@passwd.hu> <20240509064918.6654-4-cus@passwd.hu> MIME-Version: 1.0 In-Reply-To: <20240509064918.6654-4-cus@passwd.hu> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_geq: fix interpolation with 1 pixel width/height 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 Content-Type: multipart/mixed; boundary="===============6322137783373249287==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6322137783373249287== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0sSFvdUwjcSRP4Df" Content-Disposition: inline --0sSFvdUwjcSRP4Df Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2024 at 08:49:18AM +0200, Marton Balint wrote: > Fixes ticket #9740. >=20 > Signed-off-by: Marton Balint > --- > libavfilter/vf_geq.c | 20 ++++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) >=20 > diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c > index dbe50e5250..12604d44a2 100644 > --- a/libavfilter/vf_geq.c > +++ b/libavfilter/vf_geq.c > @@ -112,8 +112,12 @@ static inline double getpix(void *priv, double x, do= uble y, int plane) > return 0; > =20 > if (geq->interpolation =3D=3D INTERP_BILINEAR) { > - xi =3D x =3D av_clipd(x, 0, w - 2); > - yi =3D y =3D av_clipd(y, 0, h - 2); > + int xn, yn; > + > + xi =3D x =3D av_clipd(x, 0, w - 1); > + yi =3D y =3D av_clipd(y, 0, h - 1); > + xn =3D av_clip(xi + 1, 0, w - 1); > + yn =3D av_clip(yi + 1, 0, h - 1); xi + 1 should not need cliping, a FFMIN() should be enough thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you think the mosad wants you dead since a long time then you are either wrong or dead since a long time. --0sSFvdUwjcSRP4Df Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZj7QaQAKCRBhHseHBAsP qzkxAKCIDTAtGkfRnTusnon6bcAoPSseEACdEUJJwL1LR/8c/AVQu8Ag1kQpuQE= =7MrF -----END PGP SIGNATURE----- --0sSFvdUwjcSRP4Df-- --===============6322137783373249287== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============6322137783373249287==--