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

Git pushed a commit to branch master
in repository ffmpeg.

commit 7fc335cb2770caadbf0dd24f4e49f1b4e438b7da
Author:     Gyan Doshi <[email protected]>
AuthorDate: Tue Feb 7 20:22:24 2023 +0530
Commit:     Gyan Doshi <[email protected]>
CommitDate: Tue May 5 12:54:40 2026 +0530

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

diff --git a/libavformat/tee.c b/libavformat/tee.c
index 3a2ee92c3c..2392ef2018 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -294,6 +294,14 @@ static int open_slave(AVFormatContext *avf, char *slave, 
TeeSlave *tee_slave)
         }
     }
 
+    for (unsigned i = 0; i < avf->nb_programs; i++) {
+        ret = av_program_copy(avf2, (const AVFormatContext *)avf, 
avf->programs[i]->id, 0);
+        if (ret < 0) {
+            av_log(avf, AV_LOG_ERROR, "unable to transfer program %d to child 
muxer\n", avf->programs[i]->id);
+            return ret;
+        }
+    }
+
     ret = ff_format_output_open(avf2, filename, &options);
     if (ret < 0) {
         av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n", slave,

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

Reply via email to