This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new ade01193a1 avformat/dashenc: free http options on avio_open_dyn_buf
failure
ade01193a1 is described below
commit ade01193a1a7f77de0f466067e9961871c8e0e8a
Author: jiangjie <[email protected]>
AuthorDate: Mon Aug 17 18:32:56 2026 +0800
Commit: stevenliu <[email protected]>
CommitDate: Tue Aug 18 11:06:15 2026 +0000
avformat/dashenc: free http options on avio_open_dyn_buf failure
Fixes #24171
---
libavformat/dashenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 406ee2cf0d..c7aea0ce1c 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1463,8 +1463,10 @@ static int dash_init(AVFormatContext *s)
snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
set_http_options(&opts, c);
if (!c->single_file) {
- if ((ret = avio_open_dyn_buf(&ctx->pb)) < 0)
+ if ((ret = avio_open_dyn_buf(&ctx->pb)) < 0) {
+ av_dict_free(&opts);
return ret;
+ }
ret = s->io_open(s, &os->out, filename, AVIO_FLAG_WRITE, &opts);
} else {
ctx->url = av_strdup(filename);
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]