avformat/dashenc: Skip writing trailer for MP4 output when in streaming mode
authorKarthick J <kjeyapal@akamai.com>
Tue, 22 Jan 2019 05:55:21 +0000 (11:25 +0530)
committerKarthick J <kjeyapal@akamai.com>
Mon, 28 Jan 2019 05:37:10 +0000 (11:07 +0530)
In streaming mode mp4 trailer is not required for playout.

libavformat/dashenc.c

index 9c90cf1..6299e17 100644 (file)
@@ -1210,7 +1210,7 @@ static int dash_init(AVFormatContext *s)
 
         if (os->segment_type == SEGMENT_TYPE_MP4) {
             if (c->streaming)
-                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx", 0);
+                av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+skip_sidx+skip_trailer", 0);
             else
                 av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0);
         } else {