1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

avformat/aviobuf: Don't pretend to support avio_context_free(NULL)

It makes no sense to ever call it that way given that
avio_context_free() accepts a pointer to a pointer to an AVIOContext.
Other double-pointer-free functions like av_freep() also do it
that way (and therefore avio_context_free(NULL) still crashes
even with 870cfed231).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-09-03 15:51:51 +02:00
parent 66e40840d1
commit cd21fa41c7

View File

@@ -125,8 +125,8 @@ AVIOContext *avio_alloc_context(
void avio_context_free(AVIOContext **ps)
{
if (ps && *ps) {
AVIOContext *s = *ps;
AVIOContext *s = *ps;
if (s) {
av_freep(&s->protocol_whitelist);
av_freep(&s->protocol_blacklist);
}