segment: fix copying stream metadata

To get mpegts metadata copied when segmenting.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Mika Raento 2014-09-01 20:05:44 +03:00 committed by Michael Niedermayer
parent 413fa76f61
commit 502fc3b3d4
1 changed files with 1 additions and 0 deletions

View File

@ -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;