Commit 0c8ef543 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: fix last split segment upper boundary

parent 62578f1b
......@@ -279,7 +279,7 @@ static void insertIntoSegment(std::vector<ISegment *> &seglist, size_t start,
{
SubSegment *subsegment = new SubSegment(segment,
start + segment->getOffset(),
end + segment->getOffset());
(end != 0) ? end + segment->getOffset() : 0);
segment->addSubSegment(subsegment);
segment->startTime.Set(time);
break;
......
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