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 BE64F42A96 for ; Tue, 12 Apr 2022 12:01:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 86A1B68B3ED; Tue, 12 Apr 2022 15:01:32 +0300 (EEST) 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 78CB768B3E1 for ; Tue, 12 Apr 2022 15:01:26 +0300 (EEST) Received: from localhost (213-47-68-29.cable.dynamic.surfer.at [213.47.68.29]) (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 9E1DE20002 for ; Tue, 12 Apr 2022 12:01:25 +0000 (UTC) Date: Tue, 12 Apr 2022 14:01:24 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220412120124.GJ2829255@pb2> References: MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH] avutil/mem: fix doc for reallocs 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="===============8813107313768185396==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8813107313768185396== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ti6iALBgVa8DUZWf" Content-Disposition: inline --Ti6iALBgVa8DUZWf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 02, 2022 at 01:05:37AM +0800, Zhao Zhili wrote: > The doc says those function are like av_free if size or nmemb is > zero. It doesn't match the code. av_realloc() realloc one byte if > size is zero, which was added by 91ff05f6ac5 ten years ago. > realloc() itself in C is implementation-dependent. Make the doc > match the longstanding behaviour. > --- > libavutil/mem.h | 23 +++++++++++------------ > 1 file changed, 11 insertions(+), 12 deletions(-) patch probably ok thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Complexity theory is the science of finding the exact solution to an approximation. Benchmarking OTOH is finding an approximation of the exact --Ti6iALBgVa8DUZWf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYlVqDQAKCRBhHseHBAsP qzONAJwJeDtgFA0g7MKnGvPwSaDdPUBykACgiTDqCFqSI+cioS5OE5muKw9kGvw= =eBoq -----END PGP SIGNATURE----- --Ti6iALBgVa8DUZWf-- --===============8813107313768185396== 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". --===============8813107313768185396==--