summaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorMika Raento <mika.raento@elisa.fi>2014-09-01 20:05:44 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-09-02 12:31:04 +0200
commit502fc3b3d4b36015562d19d74f27d0a4ff835c4e (patch)
tree08b440ef593613afb7a113628e194c034c97e052 /libavformat/segment.c
parent413fa76f61f2d4a07dd52e5e70385affffa99b42 (diff)
downloadffmpeg-streaming-502fc3b3d4b36015562d19d74f27d0a4ff835c4e.zip
ffmpeg-streaming-502fc3b3d4b36015562d19d74f27d0a4ff835c4e.tar.gz
segment: fix copying stream metadata
To get mpegts metadata copied when segmenting. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 98301dd..3ee7d7d 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;
OpenPOWER on IntegriCloud