Commit 13b50747 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: add missing number/time mapping for segmentbase

parent 69bf846c
......@@ -357,6 +357,17 @@ bool SegmentInformation::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
{
return segList->getPlaybackTimeDurationBySegmentNumber(number, time, duration);
}
else
{
const uint64_t timescale = inheritTimescale();
const ISegment *segment = getSegment(SegmentInfoType::INFOTYPE_MEDIA, number);
if( segment )
{
*time = segment->startTime.Get() * CLOCK_FREQ / timescale;
*duration = segment->duration.Get() * CLOCK_FREQ / timescale;
return true;
}
}
return false;
}
......
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