Commit 86b62aae authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: fix hls live start issue

parent c0ceb661
......@@ -231,7 +231,7 @@ uint64_t SegmentInformation::getLiveStartSegmentNumber(uint64_t def) const
uint64_t number;
if( !segmentList->getSegmentNumberByScaledTime( bufferingstart, &number ) )
return list.front()->getSequenceNumber();
if( number + OFFSET_FROM_END > list.front()->getSequenceNumber() )
if( number > list.front()->getSequenceNumber() + OFFSET_FROM_END )
number -= OFFSET_FROM_END;
else
number = list.front()->getSequenceNumber();
......
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