[FFmpeg-devel] [PATCH] lavf/tee: copy metadata from input to output chained muxers

Stefano Sabatini stefasab at gmail.com
Fri Aug 23 10:17:37 CEST 2013


---
 libavformat/tee.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/tee.c b/libavformat/tee.c
index 71f245e..a50ea79 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -160,6 +160,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
     ret = avformat_alloc_output_context2(&avf2, NULL, format, filename);
     if (ret < 0)
         goto end;
+    av_dict_copy(&avf2->metadata, avf->metadata, 0);
 
     tee_slave->stream_map = av_calloc(avf->nb_streams, sizeof(*tee_slave->stream_map));
     if (!tee_slave->stream_map) {
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list