[FFmpeg-cvslog] dashenc: don't write header data before the first packet arrives

Peter Große git at videolan.org
Sun Oct 29 19:30:22 EET 2017


ffmpeg | branch: master | Peter Große <pegro at friiks.de> | Thu Oct 26 17:58:37 2017 +0200| [1443859a8d0dcffdc01f969f7cde61769aaca31a] | committer: Michael Niedermayer

dashenc: don't write header data before the first packet arrives

Fixes: 1b8ef01f04ab ("dashenc: add webm support")
Signed-off-by: Peter Große <pegro at friiks.de>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1443859a8d0dcffdc01f969f7cde61769aaca31a
---

 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 0ca7cf5aa3..23b2d3fed4 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -782,7 +782,7 @@ static int dash_init(AVFormatContext *s)
             av_dict_set_int(&opts, "dash_track_number", i + 1, 0);
             av_dict_set_int(&opts, "live", 1, 0);
         }
-        if ((ret = avformat_write_header(ctx, &opts)) < 0)
+        if ((ret = avformat_init_output(ctx, &opts)) < 0)
             return ret;
         os->ctx_inited = 1;
         avio_flush(ctx->pb);



More information about the ffmpeg-cvslog mailing list