Commit 4f287a3c authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian Committed by Michael Niedermayer

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: 's avatarVignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ca9849ee
...@@ -115,7 +115,8 @@ static void write_header(AVFormatContext *s) ...@@ -115,7 +115,8 @@ static void write_header(AVFormatContext *s)
av_strlcpy(gmt_iso, "", 1); av_strlcpy(gmt_iso, "", 1);
} }
avio_printf(s->pb, " availabilityStartTime=\"%s\"\n", gmt_iso); 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, ">\n");
avio_printf(s->pb, "<UTCTiming\n"); avio_printf(s->pb, "<UTCTiming\n");
avio_printf(s->pb, " schemeIdUri=\"%s\"\n", avio_printf(s->pb, " schemeIdUri=\"%s\"\n",
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
minBufferTime="PT1S" minBufferTime="PT1S"
profiles="urn:mpeg:dash:profile:isoff-live:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011"
availabilityStartTime="" availabilityStartTime=""
timeShiftBufferDepth="PT7200S"> timeShiftBufferDepth="PT7200S"
minimumUpdatePeriod="0">
<UTCTiming <UTCTiming
schemeIdUri="urn:mpeg:dash:utc:direct:2012" schemeIdUri="urn:mpeg:dash:utc:direct:2012"
value=""/> value=""/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment