[FFmpeg-cvslog] avformat/hlsenc: fix stream level metadata handling

Bela Bodecs git at videolan.org
Mon Feb 13 01:35:55 EET 2017


ffmpeg | branch: master | Bela Bodecs <bodecsb at vivanet.hu> | Mon Feb 13 07:33:48 2017 +0800| [2b9f92fcc5486361b63c4fab5a24c222dc8969ef] | committer: Steven Liu

avformat/hlsenc: fix stream level metadata handling

hls-encoder currenlty does not provide stream level metadata to mpegts
muxer. This patch fixes track #3848 bug.

Signed-off-by: Bela Bodecs <bodecsb at vivanet.hu>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b9f92fcc5486361b63c4fab5a24c222dc8969ef
---

 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index ad5205a..930e94b 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list