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