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 A6BC1496BF for ; Mon, 19 Feb 2024 00:08:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 98D4368D3AC; Mon, 19 Feb 2024 02:08:26 +0200 (EET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 48FDF68D256 for ; Mon, 19 Feb 2024 02:08:20 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2ACFB20003 for ; Mon, 19 Feb 2024 00:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1708301299; 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=0/yCLq+42W0vnFIbGHgWEDCWw0+VF869sSNDTBpbtYI=; b=fzfui8xdS5/gExmcrfSiIcm+4RlqG6nKq12dyeeIESOmv/kylViw3LT990RCyPw4bIdQca 4GuHtFv4lDtKPVry5M6rbxk31hDZefFG0oUtRts6cxKxpW1iB99pwDj6qqKfg/iqd7sXag fmcuZSQI3eTTBnMynSYBhMnkv/HFyipWcf28aOnt4/VzQKbST8O6Fb47+OJB+5b+FR6zdE ZzNmhrae5MxTDi8zJ3fK2b4ndT0lNs/5t/wEleh/t8mm/DcJ1wswBjb7iTu0zYI8+UJwDp ws3N8QzVMtYSucCZhE0wRD85iNow30j0/A/Z7xmOTsNJRIMnQDZTXE/22Hj6sg== Date: Mon, 19 Feb 2024 01:08:18 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240219000818.GQ6420@pb2> References: <20240218161636.15649-1-jamrial@gmail.com> MIME-Version: 1.0 In-Reply-To: <20240218161636.15649-1-jamrial@gmail.com> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avutil/mem: use C11 aligned_malloc() 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="===============2608699455043750893==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2608699455043750893== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9L0fSX73vaoCZbXM" Content-Disposition: inline --9L0fSX73vaoCZbXM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 18, 2024 at 01:16:36PM -0300, James Almer wrote: > Save for the Microsoft C Runtime library, where free() can't handle align= ed > buffers, aligned_malloc() should be available and working on all supported > targets. > Also, malloc() alone may be sufficient if alignment requirement is low, s= o add > a check for it. >=20 > Signed-off-by: James Almer > --- > configure | 2 -- > libavutil/mem.c | 42 ++++++------------------------------------ > 2 files changed, 6 insertions(+), 38 deletions(-) This breaks build here libavutil/mem.c: In function =E2=80=98av_malloc=E2=80=99: libavutil/mem.c:108:15: error: implicit declaration of function =E2=80=98al= igned_malloc=E2=80=99; did you mean =E2=80=98aligned_alloc=E2=80=99? [-Werr= or=3Dimplicit-function-declaration] ptr =3D aligned_malloc(size, ALIGN); ^~~~~~~~~~~~~~ aligned_alloc libavutil/mem.c:108:13: warning: assignment makes pointer from integer with= out a cast [-Wint-conversion] ptr =3D aligned_malloc(size, ALIGN); ^ cc1: some warnings being treated as errors ffbuild/common.mak:81: recipe for target 'libavutil/mem.o' failed [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme liberty. -- Plato --9L0fSX73vaoCZbXM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iFwEABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZdKb6wAKCRBhHseHBAsP qzC7AJdLAyRPaBwpe87sX9swhDATqW1IAJ0b3/0pbHH8Eq1ZLZZOIHPj1p14rw== =Tt1r -----END PGP SIGNATURE----- --9L0fSX73vaoCZbXM-- --===============2608699455043750893== 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". --===============2608699455043750893==--