Skip to content

Commit

Permalink
segment: fix copying stream metadata
Browse files Browse the repository at this point in the history
To get mpegts metadata copied when segmenting.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
Mika Raento authored and michaelni committed Sep 2, 2014
1 parent 413fa76 commit 502fc3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/segment.c
Expand Up @@ -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;
Expand Down

0 comments on commit 502fc3b

Please sign in to comment.