Commit 1443859a authored by Peter Große's avatar Peter Große Committed by Michael Niedermayer

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

Fixes: 1b8ef01f ("dashenc: add webm support")
Signed-off-by: 's avatarPeter Große <pegro@friiks.de>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 44ede215
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment