[vlc-commits] demux: adaptive: fix timeline startnumber

Francois Cartegnie git at videolan.org
Mon Oct 17 15:47:46 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 17 15:46:51 2016 +0200| [8339c21555d935442cde6b8274f7dc4a33f802f3] | committer: Francois Cartegnie

demux: adaptive: fix timeline startnumber

could be given by on parent template

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8339c21555d935442cde6b8274f7dc4a33f802f3
---

 modules/demux/dash/mpd/IsoffMainParser.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index db38f78..73b2b2f 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -441,6 +441,8 @@ void IsoffMainParser::parseTimeline(Node *node, MediaSegmentTemplate *templ)
     uint64_t number = 0;
     if(node->hasAttribute("startNumber"))
         number = Integer<uint64_t>(node->getAttributeValue("startNumber"));
+    else if(templ->startNumber.Get())
+        number = templ->startNumber.Get();
 
     SegmentTimeline *timeline = new (std::nothrow) SegmentTimeline(templ);
     if(timeline)



More information about the vlc-commits mailing list