avformat/hlsenc: set strict_std_compliance from the parent AVFormatContext

fix ticket: 8388

Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-11-25 11:15:13 +08:00
parent d07d1c1dd0
commit 59d264b0a1

View File

@ -776,12 +776,13 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
if (!oc->url) if (!oc->url)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
oc->oformat = vs->oformat; oc->oformat = vs->oformat;
oc->interrupt_callback = s->interrupt_callback; oc->interrupt_callback = s->interrupt_callback;
oc->max_delay = s->max_delay; oc->max_delay = s->max_delay;
oc->opaque = s->opaque; oc->opaque = s->opaque;
oc->io_open = s->io_open; oc->io_open = s->io_open;
oc->io_close = s->io_close; oc->io_close = s->io_close;
oc->strict_std_compliance = s->strict_std_compliance;
av_dict_copy(&oc->metadata, s->metadata, 0); av_dict_copy(&oc->metadata, s->metadata, 0);
if (vs->vtt_oformat) { if (vs->vtt_oformat) {