Commit 502fc3b3 authored by Mika Raento's avatar Mika Raento Committed by Michael Niedermayer

segment: fix copying stream metadata

To get mpegts metadata copied when segmenting.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 413fa76f
...@@ -160,6 +160,7 @@ static int segment_mux_init(AVFormatContext *s) ...@@ -160,6 +160,7 @@ static int segment_mux_init(AVFormatContext *s)
ocodec->codec_tag = 0; ocodec->codec_tag = 0;
} }
st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio; st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
av_dict_copy(&st->metadata, s->streams[i]->metadata, 0);
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment