Re: [FFmpeg-devel] [PATCH 2/2] avformat/aviobuf: Honor avio_open[2] documentation

2020-01-06 Thread Michael Niedermayer
On Mon, Jan 06, 2020 at 03:51:49PM +0100, Andreas Rheinhardt wrote: > The documentation of both avio_open() as well as avio_open2() states > that on failure, the pointer to an AVIOContext given to this function > (via a pointer to a pointer to an AVIOContext) will be set to NULL. Yet > it didn't ha

[FFmpeg-devel] [PATCH 2/2] avformat/aviobuf: Honor avio_open[2] documentation

2020-01-06 Thread Andreas Rheinhardt
The documentation of both avio_open() as well as avio_open2() states that on failure, the pointer to an AVIOContext given to this function (via a pointer to a pointer to an AVIOContext) will be set to NULL. Yet it didn't happen upon failure of ffurl_open_whitelist() or when allocating the internal