diff mbox

[FFmpeg-devel,1/3] lavf/dashenc: fix merge error (write_header vs init_output)

Message ID 20170926195500.88129-1-rodger.combs@gmail.com
State Withdrawn, archived
Headers show

Commit Message

Rodger Combs Sept. 26, 2017, 7:54 p.m. UTC
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 240ff41380..92d398ab50 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -785,7 +785,7 @@  static int dash_init(AVFormatContext *s)
             dict_set_int(&opts, "cluster_time_limit", c->min_seg_duration / 1000, 0);
             dict_set_int(&opts, "cluster_size_limit", 5 * 1024 * 1024, 0); // set a large cluster size limit
         }
-        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);