From 4f287a3c5007db853e4f1098ab194f9337e2f7da Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Tue, 21 Apr 2015 16:36:52 -0700 Subject: webmdashenc: Add minimumUpdatePeriod DASH spec requires the presence of either duration of the period or the minimumUpdatePeriod element. This patch adds the minimumUpdatePeriod element hardcoded with the value 0 as the manifest will never be updated for WebM DASH Live streams. Also updating the fate test reference file. Signed-off-by: Vignesh Venkatasubramanian Signed-off-by: Michael Niedermayer --- libavformat/webmdashenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/webmdashenc.c') diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 6b94e54801..e627a15f9a 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -115,7 +115,8 @@ static void write_header(AVFormatContext *s) av_strlcpy(gmt_iso, "", 1); } avio_printf(s->pb, " availabilityStartTime=\"%s\"\n", gmt_iso); - avio_printf(s->pb, " timeShiftBufferDepth=\"PT%gS\"", w->time_shift_buffer_depth); + avio_printf(s->pb, " timeShiftBufferDepth=\"PT%gS\"\n", w->time_shift_buffer_depth); + avio_printf(s->pb, " minimumUpdatePeriod=\"0\""); avio_printf(s->pb, ">\n"); avio_printf(s->pb, "pb, " schemeIdUri=\"%s\"\n", -- cgit v1.2.3