[FFmpeg-devel] [PATCH] Push hls_ts_options to every chunks (fix #5525)
Jack
ffmpeg at jack.fr.eu.org
Mon May 9 18:17:36 CEST 2016
Signed-off-by: jack <ffmpeg at jack.fr.eu.org>
---
libavformat/hlsenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index a9fa5d8..77712d0 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -624,6 +624,11 @@ static int hls_start(AVFormatContext *s)
err = avformat_write_header(vtt_oc,NULL);
if (err < 0)
return err;
+ } else {
+ HLSContext *hls = s->priv_data;
+ av_dict_copy(&options, hls->format_options, 0);
+ avformat_write_header(hls->avf, &options);
+ av_dict_free(&options);
}
return 0;
--
2.8.1
More information about the ffmpeg-devel
mailing list