Commit 33ea1f23 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: handle durationless manifests

parent 1c64e88c
......@@ -85,7 +85,13 @@ static SegmentTimeline *createTimeline(Node *streamIndexNode, uint64_t timescale
}
else
{
cur.duration = prev.duration;
if(it != chunks.end())
{
const Node *nextchunk = *(it + 1);
cur.duration = Integer<uint64_t>(nextchunk->getAttributeValue("t"))
- Integer<uint64_t>(chunk->getAttributeValue("t"));
b_cur_is_repeat &= (cur.duration == prev.duration);
}
}
if(chunk->hasAttribute("t"))
......
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