[FFmpeg-devel] [PATCH] avutil/mem: fix doc for reallocs
Michael Niedermayer
michael at niedermayer.cc
Tue Apr 12 15:01:24 EEST 2022
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
[...]
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220412/e8a4a583/attachment.sig>
More information about the ffmpeg-devel
mailing list