Skip to content
Snippets Groups Projects
Commit 13b50747 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

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

parent 69bf846c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment