dashdemux: corrected computation of period's duration
authorFlorin Apostol <florin.apostol@oregan.net>
Mon, 15 Jun 2015 11:59:55 +0000 (12:59 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2015 11:47:54 +0000 (13:47 +0200)
commit8336d7a60bc8340e3bc012fec8fbbbd739ef5674
treedf09649f24062040886ee5e76e473c694729b473
parent0a5b6d934496ed8be9bc62951d2d55feedc959dd
dashdemux: corrected computation of period's duration

According to ISO/IEC 23009-1:2014(E), chapter 5.3.2.1
"The Period extends until the PeriodStart of the next Period, or until
the end of the Media Presentation in the case of the last Period."

This means that a configured value for optional attribute period duration
should be ignored if the next period contains a start attribute or it is
the last period and the MPD contains a mediaPresentationDuration attribute.

https://bugzilla.gnome.org/show_bug.cgi?id=750797
ext/dash/gstmpdparser.c
tests/check/elements/dash_mpd.c