From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id BE1954C060 for ; Sun, 7 Dec 2025 00:25:09 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'uHonPT32E0BhiAQOrVUEctK5FErUwkEEBcL3mOTNhNo=', expected b'QVKOTky9MytKhpRM+WYxdOHCq0fCWFONTU2ah4EGsnQ=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1765067094; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=bTfvybAF59gyia8P8JotuHIWT14mI0u0IHcZDB+PVVc=; b=2v/uf2k5xDdO6Mag32W6hFM5s6yDfUP4ynKwI+GTIHz3WpIF3rPTlwO5JOIxDagW3QWnB NOrxOxFtWFjjxZRil6tONf41izPUyUQbjMXlOoSj85j5Oi0zAFbDhXDzn8n9oZt+IRTo4W/ Q5IvRBWAqcER0QryGFoFFwxNUzEb/BUY91qIWq/O9N4NggR0F5lXlqRH9kTPzhutzGudbkN Q0MsmWLj3xbvwoQy6riBg914gte44k4zIGwR1OQjBdUW/rR/A11ULFYURioEhyScXLIHtOA X4pKD5N9YkSm/AEghFXYEY2QUdg+EQE0rmkFeVbrohU6irVP/DvJrbI27OTg== Received: from [172.19.0.3] (unknown [172.19.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id DD9DF6905BF; Sun, 7 Dec 2025 02:24:54 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1765067075; b=Aho4C1ywXUvOgQMftLq2ppLcL/7FnWqgl3l32jCl91Pj9Oy2/SHmkopYCR+l+s9cCW1OT 1q3DY3XsCyvcaspIpNGWhNpP5F3pcL2Z/kvyD0EfyAFxdPDgIuf0OCyv691yNcOgQ9lr3RK 5Z2h0oULq8/oTfz7x/jyt3SvrYVnombJ/ONmB3noJ+zzqk6v0hgwHzqqhfJ7EIEQ2Wh71g9 qkwRyx4eGRJVFRjO5Ur+zJmOcvvLV9UTQ2PafUXXBfHMitR9e64Ggwer4scvmVZ3baj/YjB PaEjeOJrhiNVN87mkpCN61L1tFmbNWyBEZUTXYGJXcszqVHdUpqKlRHffDCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1765067075; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=uHonPT32E0BhiAQOrVUEctK5FErUwkEEBcL3mOTNhNo=; b=YazjptGq59hidbBbvkuc3rAtG+zKvVOkWLjV9FVPmTtwYEDt/nQ4bsFs016noK3m2Kh+B J6ebAsHyemIkQEKbHu+104GGuHL7nAERRPidp9969d7xinQ5vTnhRoLuW6kHTUwktd7Xngo rWCRljwWWFU3+RU4Ym+9Sy6uLxlvd9zhqwTcmPvaOQGl71iuCD9R8o9CTGb82LjVnN+fb+x DwKOGFnxaYIvhlBqwW73KA3uSy/079dvPhmuAsM09XUpwDqHlCicakY3IrWdfhIX7eb6iwb JQpFKXMEJwvLnbJy09r+LOBbCfGzEJ5/7jFuJ7F3ETOw75tWfzEf6BXqO7ZQ== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D51EF68E88A for ; Sun, 7 Dec 2025 02:24:22 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id E2C4543B22 for ; Sun, 7 Dec 2025 00:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1765067062; 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=QVKOTky9MytKhpRM+WYxdOHCq0fCWFONTU2ah4EGsnQ=; b=K1xIBnyZ2vkr+ly+wbxg2ArEt+qmnHY4Sl+Ex/0pNUFwRZ2HfsdwP9LwupYWUhl4+Fw78G mTc/I58ZwgPM+u0LachQgpgbLVQjNH6tfp/zasiY+V7JjzmTDYXJiX6P6i6wJ1/WTT9VYi DDRNhoT6qgG/17YXSWs+NCfps3M+zK3NEZ4BpOjpl8q5+39/EOlRTCNTXMYdsz9OWbxYZH OO2BqDiGAtKsAW2Xc0A7rFUKX/5m4DD5OvljTfEWKNtFSEvhW5Ty9yzM/WsXVcmnMnR9FM fOvHGY4Dp4BJ7JnIwtmdkw9Pwp2czTf93NYY06m6MIf6uaTbbsv2kj/DSnWEsA== Date: Sun, 7 Dec 2025 01:24:20 +0100 To: FFmpeg development discussions and patches Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduvdefjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeiiedrhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieeirdehtddphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Message-ID-Hash: PL4ADB6F3XPGQIOTCME75CVA7MLKZIUD X-Message-ID-Hash: PL4ADB6F3XPGQIOTCME75CVA7MLKZIUD X-MailFrom: SRS0=WJzT=6N=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: NAN compile error fix patch List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============6834433313919617313==" Archived-At: List-Archive: List-Post: --===============6834433313919617313== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zNutYZF4lKxcDmv5" Content-Disposition: inline --zNutYZF4lKxcDmv5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Wed, Dec 03, 2025 at 09:31:58PM +0000, John Nelson via ffmpeg-devel wrot= e: > This is a known issue apparently and been fixed in other places in the co= de in a similar way - however, there is a check for isnan() in the same fil= e, so perhaps this won't work as well as the other cases. >=20 > Thanks, > John > h264_metadata.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > 2e8ff4b98142c5df9dad7aa72a6ed7cb7e8d4fb3 /var0001-remove-NAN-from-const-= initializer-that-s-causing-com.patch > From 03c0d37f6c8b0e8dc6f58ec50984c15f54dc6445 Mon Sep 17 00:00:00 2001 > From: John Nelson > Date: Wed, 3 Dec 2025 13:27:57 -0800 > Subject: [PATCH] remove NAN from const initializer that's causing compile > errors in some cases >=20 > --- > libavcodec/bsf/h264_metadata.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/libavcodec/bsf/h264_metadata.c b/libavcodec/bsf/h264_metadat= a.c > index 477f1b18b6..91a5004b96 100644 > --- a/libavcodec/bsf/h264_metadata.c > +++ b/libavcodec/bsf/h264_metadata.c > @@ -590,6 +590,7 @@ static int h264_metadata_init(AVBSFContext *bsf) > } > =20 > #define OFFSET(x) offsetof(H264MetadataContext, x) > +#define DEFAULT 0.0 //should be NAN but it does not work as it is not a = constant in glibc as required by ANSI/ISO C > #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM) > static const AVOption h264_metadata_options[] =3D { > BSF_ELEMENT_OPTIONS_PIR("aud", "Access Unit Delimiter NAL units", > @@ -658,7 +659,7 @@ static const AVOption h264_metadata_options[] =3D { > =20 > { "rotate", "Set rotation in display orientation SEI (anticlockwise = angle in degrees)", > OFFSET(rotate), AV_OPT_TYPE_DOUBLE, > - { .dbl =3D NAN }, -360.0, +360.0, FLAGS }, > + { .dbl =3D DEFAULT }, -360.0, +360.0, FLAGS }, > { "flip", "Set flip in display orientation SEI", how does this fail to build ? try to include float.h and math.h also if this originates from libavutil/mathematics.h, that define NAN there should be fixed to comply to the standard thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The day soldiers stop bringing you their problems is the day you have stopp= ed=20 leading them. They have either lost confidence that you can help or conclud= ed=20 you do not care. Either case is a failure of leadership. - Colin Powell --zNutYZF4lKxcDmv5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaTTJLQAKCRBhHseHBAsP q+55AKCSSP6FuZB3jYubo49fGn7kXbAxnQCfQgWXJPTDR9aHSTc6rOIY41s9KAs= =R//W -----END PGP SIGNATURE----- --zNutYZF4lKxcDmv5-- --===============6834433313919617313== 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 To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============6834433313919617313==--