summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Große <pegro@friiks.de>2017-10-26 17:58:37 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-10-29 18:28:40 +0100
commit1443859a8d0dcffdc01f969f7cde61769aaca31a (patch)
tree6339d19b7686b4fe98c823884255e7bde16906c5
parent44ede215b6623eb5e24bac013ea668366e2f258a (diff)
dashenc: don't write header data before the first packet arrives
Fixes: 1b8ef01f04ab ("dashenc: add webm support") Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
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);