From 502fc3b3d4b36015562d19d74f27d0a4ff835c4e Mon Sep 17 00:00:00 2001 From: Mika Raento Date: Mon, 1 Sep 2014 20:05:44 +0300 Subject: [PATCH] segment: fix copying stream metadata To get mpegts metadata copied when segmenting. Signed-off-by: Michael Niedermayer --- libavformat/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/segment.c b/libavformat/segment.c index 98301dd7bc..3ee7d7d206 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -160,6 +160,7 @@ static int segment_mux_init(AVFormatContext *s) ocodec->codec_tag = 0; } st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio; + av_dict_copy(&st->metadata, s->streams[i]->metadata, 0); } return 0;