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-
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
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