lavf/tee: copy metadata to output chained muxers
authorStefano Sabatini <stefasab@gmail.com>
Fri, 23 Aug 2013 08:16:59 +0000 (10:16 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 23 Aug 2013 10:27:09 +0000 (12:27 +0200)
libavformat/tee.c

index 71f245e..a50ea79 100644 (file)
@@ -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) {