Re: [FFmpeg-devel] [PATCH] avutil/mem: fix doc for reallocs

2022-04-12 Thread Michael Niedermayer
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-

Re: [FFmpeg-devel] [PATCH] avutil/mem: fix doc for reallocs

2022-04-12 Thread zhilizhao(赵志立)
Ping. > On Apr 2, 2022, at 1:05 AM, 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-d

[FFmpeg-devel] [PATCH] avutil/mem: fix doc for reallocs

2022-04-01 Thread Zhao Zhili
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. --- libav