[FFmpeg-devel] [PATCH v2 04/11] avformat/dashenc: removed 'write_manifest' call from 'write_header'

vdixit at akamai.com vdixit at akamai.com
Wed Apr 4 11:37:15 EEST 2018


From: Vishwanath Dixit <vdixit at akamai.com>

Calling 'write_manifest' from 'write_header' was causing creation of
first MPD with invalid values. Ex: zero @duration param value. Also,
the manifest files (MPD or M3U8s) should be created when at-least
one media frame is ready for consumption.
---
 libavformat/dashenc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index e719409..1bac2c9 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1042,9 +1042,6 @@ static int dash_write_header(AVFormatContext *s)
         if ((ret = avformat_write_header(os->ctx, NULL)) < 0)
             return ret;
     }
-    ret = write_manifest(s, 0);
-    if (!ret)
-        av_log(s, AV_LOG_VERBOSE, "Manifest written to: %s\n", s->url);
     return ret;
 }
 
-- 
1.9.1



More information about the ffmpeg-devel mailing list