avformat/hlsenc: fix stream level metadata handling
authorBela Bodecs <bodecsb@vivanet.hu>
Sun, 12 Feb 2017 23:33:48 +0000 (07:33 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Sun, 12 Feb 2017 23:33:48 +0000 (07:33 +0800)
hls-encoder currenlty does not provide stream level metadata to mpegts
muxer. This patch fixes track #3848 bug.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c

index ad5205a..930e94b 100644 (file)
@@ -450,6 +450,7 @@ static int hls_mux_init(AVFormatContext *s)
         avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
         st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
         st->time_base = s->streams[i]->time_base;
+        av_dict_copy(&st->metadata, s->streams[i]->metadata, 0);
     }
     hls->start_pos = 0;
     hls->new_start = 1;