Commit 3d19bd0f authored by François Cartegnie's avatar François Cartegnie 🤞

demux: dash: compute segmentList segments starttime

parent 727ef476
......@@ -303,6 +303,7 @@ size_t IsoffMainParser::parseSegmentList(Node * segListNode, SegmentInformation
if(segListNode->hasAttribute("timescale"))
list->timescale.Set(Integer<uint64_t>(segListNode->getAttributeValue("timescale")));
uint64_t nzStartTime = 0;
std::vector<Node *>::const_iterator it;
for(it = segments.begin(); it != segments.end(); ++it)
{
......@@ -329,6 +330,9 @@ size_t IsoffMainParser::parseSegmentList(Node * segListNode, SegmentInformation
totaltime += list->duration.Get();
}
seg->startTime.Set(VLC_TS_0 + nzStartTime);
nzStartTime += CLOCK_FREQ * list->duration.Get();
list->addSegment(seg);
total++;
}
......
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