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

Submitted by Rodger Combs on Sept. 26, 2017, 7:54 p.m.

Details

Message ID 20170926195500.88129-1-rodger.combs@gmail.com
State New
Headers show

Commit Message

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

Patch hide | download patch | download mbox

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