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

Git pushed a commit to branch master
in repository ffmpeg.

commit 0005b36eb73a53d89a351c436f621c4ee120faed
Author:     Gyan Doshi <[email protected]>
AuthorDate: Tue Feb 7 20:07:18 2023 +0530
Commit:     Gyan Doshi <[email protected]>
CommitDate: Tue May 5 12:54:40 2026 +0530

    avformat/hlsenc: relay programs to child muxers
---
 libavformat/hlsenc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index de49c059d2..df24b17ab6 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -830,6 +830,14 @@ static int hls_mux_init(AVFormatContext *s, VariantStream 
*vs)
         st->id = vs->streams[i]->id;
     }
 
+    for (i = 0; i < s->nb_programs; i++) {
+        ret = av_program_copy(oc, (const AVFormatContext *)s, 
s->programs[i]->id, 0);
+        if (ret < 0) {
+            av_log(s, AV_LOG_ERROR, "unable to transfer program %d to child 
muxer\n", s->programs[i]->id);
+            return ret;
+        }
+    }
+
     vs->start_pos = 0;
     vs->new_start = 1;
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to