The branch, master has been updated
via cd21fa41c70bdc03660e0566649e9cf2bd7441b7 (commit)
from 66e40840d15b514f275ce3ce2a4bf72ec68c7311 (commit)
- Log -----------------------------------------------------------------
commit cd21fa41c70bdc03660e0566649e9cf2bd7441b7
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Sep 3 15:51:51 2025 +0200
Commit: Andreas Rheinhardt <[email protected]>
CommitDate: Wed Sep 3 15:51:51 2025 +0200
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 870cfed2317e311a71bc14773332486a162f059c).
Signed-off-by: Andreas Rheinhardt <[email protected]>
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 2e65f50006..6a6ec36e28 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -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);
}
-----------------------------------------------------------------------
Summary of changes:
libavformat/aviobuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]