Commit 579db8b8 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: add pts-delay to maxbuffering for segment startnumber computation

parent c57adace
......@@ -164,7 +164,8 @@ std::size_t SegmentInformation::getAllSegments(std::vector<ISegment *> &retSegme
uint64_t SegmentInformation::getLiveStartSegmentNumber(uint64_t def) const
{
const mtime_t i_max_buffering = getPlaylist()->getMaxBuffering();
const mtime_t i_max_buffering = getPlaylist()->getMaxBuffering() +
/* FIXME: add dynamic pts-delay */ CLOCK_FREQ;
if( mediaSegmentTemplate )
{
......
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