diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c index e56b3c4dc1..347df83a51 100644 --- a/libavformat/hdsenc.c +++ b/libavformat/hdsenc.c @@ -374,6 +374,7 @@ static int hds_write_header(AVFormatContext *s) os->ctx = ctx; ctx->oformat = oformat; ctx->interrupt_callback = s->interrupt_callback; + ctx->flags = s->flags; ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os,