Browse Source

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

Fixes: 1b8ef01f04 ("dashenc: add webm support")
Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
Peter Große Michael Niedermayer 8 years ago
parent
commit
1443859a8d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dashenc.c

+ 1
- 1
libavformat/dashenc.c View File

@@ -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);


Loading…
Cancel
Save