This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.0
in repository ffmpeg.

commit 0c9974506f25441fc39298b03ef3dbfef84d7a3d
Author:     jiangjie <[email protected]>
AuthorDate: Mon Aug 17 18:32:56 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Fri Sep 4 21:53:59 2026 +0200

    avformat/dashenc: free http options on avio_open_dyn_buf failure
    
    Fixes #24171
    
    (cherry picked from commit ade01193a1a7f77de0f466067e9961871c8e0e8a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 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]

Reply via email to