diff options
author | Vishwanath Dixit <vdixit@akamai.com> | 2018-04-11 12:30:29 +0530 |
---|---|---|
committer | Karthick Jeyapal <kjeyapal@akamai.com> | 2018-04-17 14:32:01 +0530 |
commit | 51888c85d4c196bffa1a02907d7dcd98d538b889 (patch) | |
tree | b2962a16c5a639d9e4408d7063efe5db7a5f9381 | |
parent | ab789e184c20bd32e50b083a8731ba9b34088d66 (diff) | |
download | ffmpeg-51888c85d4c196bffa1a02907d7dcd98d538b889.tar.gz |
avformat/dashenc: writing average segment duration for @duration in template mode
-rw-r--r-- | libavformat/dashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index ad52730b6d..4c2e63c936 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -347,7 +347,7 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, AVFormatCont int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE; avio_printf(out, "\t\t\t\t<SegmentTemplate timescale=\"%d\" ", timescale); if (!c->use_timeline) - avio_printf(out, "duration=\"%"PRId64"\" ", c->last_duration); + avio_printf(out, "duration=\"%"PRId64"\" ", c->seg_duration); avio_printf(out, "initialization=\"%s\" media=\"%s\" startNumber=\"%d\">\n", c->init_seg_name, c->media_seg_name, c->use_timeline ? start_number : 1); if (c->use_timeline) { int64_t cur_time = 0; |