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

Steven Liu lingjiujianke at gmail.com
Sun Feb 12 03:36:25 EET 2017


2017-02-12 5:31 GMT+08:00 Bodecs Bela <bodecsb at vivanet.hu>:

> Dear All,
>
> hls-encoder currently does not provide stream level metadata to mpegts
> muxer. This patch also fixes track #3848 bug.
>
> Please review this bug fix. Thank you in advance.
>
>
> best regards,
>
> Bela Bodecs
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


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>
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index bd1e684..a58ded9 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -446,6 +446,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;
-- 
2.5.3.windows.1




LGTM





Thanks


More information about the ffmpeg-devel mailing list