Commit 3f1a8f84 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: fix wrong timeline duration

parent 78493346
...@@ -321,8 +321,8 @@ void SegmentInformation::getDurationsRange(mtime_t *min, mtime_t *max) const ...@@ -321,8 +321,8 @@ void SegmentInformation::getDurationsRange(mtime_t *min, mtime_t *max) const
if(mediaSegmentTemplate && mediaSegmentTemplate->segmentTimeline.Get()) if(mediaSegmentTemplate && mediaSegmentTemplate->segmentTimeline.Get())
{ {
const mtime_t duration = mediaSegmentTemplate->segmentTimeline.Get()->start() - const mtime_t duration = mediaSegmentTemplate->segmentTimeline.Get()->end() -
mediaSegmentTemplate->segmentTimeline.Get()->end(); mediaSegmentTemplate->segmentTimeline.Get()->start();
if (!*min || duration < *min) if (!*min || duration < *min)
*min = duration; *min = duration;
......
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