diff mbox

[FFmpeg-devel,4/7] dashenc: don't write header data before the first packet arrives

Message ID 20171026155840.16816-5-pegro@friiks.de
State Accepted
Commit 1443859a8d0dcffdc01f969f7cde61769aaca31a
Headers show

Commit Message

Peter Große Oct. 26, 2017, 3:58 p.m. UTC
Fixes: 1b8ef01f04ab ("dashenc: add webm support")
Signed-off-by: Peter Große <pegro@friiks.de>
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Oct. 29, 2017, 5:12 p.m. UTC | #1
On Thu, Oct 26, 2017 at 05:58:37PM +0200, Peter Große wrote:
> Fixes: 1b8ef01f04ab ("dashenc: add webm support")
> Signed-off-by: Peter Große <pegro@friiks.de>
> ---
>  libavformat/dashenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thanks

[...]
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index bde093646f..c09b22bf7b 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -780,7 +780,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);