GNOME Bugzilla – Bug 752337
dashdemux: invalid periods are accepted by the parser
Last modified: 2016-02-25 13:29:32 UTC
According to the description of the xs:duration xml datatype (http://books.xmlschemata.org/relaxng/ch19-77073.html) the format for duration mandates that the year precedes the month, eg: P1M2Y is invalid (parts order is significant and Y must precede M). However, the implementation of gst_mpdparser_get_xml_prop_duration does not care about the order of these and will accept a P1M2Y duration. More, because of the algorithm logic, it will also accept a P1Y2Y duration (the last value will override a previous one). gst_mpdparser_get_xml_prop_duration implementation should be strengthen to reject invalid formats.
*** This bug has been marked as a duplicate of bug 752336 ***