From 59d264b0a1218094709d61e30c9056c90859567f Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Mon, 25 Nov 2019 11:15:13 +0800 Subject: [PATCH] avformat/hlsenc: set strict_std_compliance from the parent AVFormatContext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix ticket: 8388 Reviewed-by: Jan Ekström Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 013e91ad88..043438368e 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -776,12 +776,13 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs) if (!oc->url) return AVERROR(ENOMEM); - oc->oformat = vs->oformat; - oc->interrupt_callback = s->interrupt_callback; - oc->max_delay = s->max_delay; - oc->opaque = s->opaque; - oc->io_open = s->io_open; - oc->io_close = s->io_close; + oc->oformat = vs->oformat; + oc->interrupt_callback = s->interrupt_callback; + oc->max_delay = s->max_delay; + oc->opaque = s->opaque; + oc->io_open = s->io_open; + oc->io_close = s->io_close; + oc->strict_std_compliance = s->strict_std_compliance; av_dict_copy(&oc->metadata, s->metadata, 0); if (vs->vtt_oformat) {