You've already forked FFmpeg
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user