avformat/hdsenc: Pass flags to child context
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 11 Apr 2016 01:59:12 +0000 (03:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 11 Apr 2016 02:34:00 +0000 (04:34 +0200)
This is needed as the bitexact flag is not in the codecpar context, and thus not copied

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/hdsenc.c

index e56b3c4..347df83 100644 (file)
@@ -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,