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 263f271422 avformat/options: fix avformat_stream_group_add_stream() 
memory leak on failure path
263f271422 is described below

commit 263f2714221637396d088abe9a2dbe7c98192cc5
Author:     James Almer <[email protected]>
AuthorDate: Mon Oct 12 18:27:47 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Mon Oct 12 18:30:17 2026 -0300

    avformat/options: fix avformat_stream_group_add_stream() memory leak on 
failure path
    
    Introduced in 8b577f90f3676cd5540e135e974dbdb1462ec4bf
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/options.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/options.c b/libavformat/options.c
index e1c094f538..abdabca15f 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -553,6 +553,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
                                           sizeof(*stg->streams));
     if (!streams)
         return AVERROR(ENOMEM);
+
+    stg->streams = streams;
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 
@@ -571,7 +573,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
 
 #if FF_API_STREAM_GROUP_ENTRIES
 FF_DISABLE_DEPRECATION_WARNINGS
-    stg->streams = streams;
     if (stg->nb_streams == (stg->nb_entries - 1))
         stg->streams[stg->nb_streams++] = st;
     else

-- 
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