diff options
author | Peter Große <pegro@friiks.de> | 2017-10-26 17:58:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-29 18:28:40 +0100 |
commit | 1443859a8d0dcffdc01f969f7cde61769aaca31a (patch) | |
tree | 6339d19b7686b4fe98c823884255e7bde16906c5 /libavformat | |
parent | 44ede215b6623eb5e24bac013ea668366e2f258a (diff) | |
download | ffmpeg-streaming-1443859a8d0dcffdc01f969f7cde61769aaca31a.zip ffmpeg-streaming-1443859a8d0dcffdc01f969f7cde61769aaca31a.tar.gz |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 0ca7cf5..23b2d3f 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); |