avformat/dashenc: 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/dashenc.c

index 8ddf0f3..519f9c4 100644 (file)
@@ -632,6 +632,7 @@ static int dash_write_header(AVFormatContext *s)
         st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
         st->time_base = s->streams[i]->time_base;
         ctx->avoid_negative_ts = s->avoid_negative_ts;
+        ctx->flags = s->flags;
 
         ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, dash_write, NULL);
         if (!ctx->pb) {