[FFmpeg-devel] [PATCH v3 4/5] avformat/segment: relay programs to child muxers
Gyan Doshi
ffmpeg at gyani.pro
Fri Feb 17 19:02:48 EET 2023
---
libavformat/segment.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 2a82f39f31..5017fb628d 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -186,6 +186,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
+ 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_WARNING, "unable to transfer program %d to child muxer\n", s->programs[i]->id);
+ break;
+ }
+ }
+
return 0;
}
--
2.39.1
More information about the ffmpeg-devel
mailing list