[vlc-commits] demux: adaptive: fix timeline ahead time
Francois Cartegnie
git at videolan.org
Tue Jan 5 20:25:31 UTC 2021
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 28 22:51:45 2020 +0100| [dfcc76295c96ca0dc90c969b4ecec82d87463d7b] | committer: Francois Cartegnie
demux: adaptive: fix timeline ahead time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfcc76295c96ca0dc90c969b4ecec82d87463d7b
---
modules/demux/adaptive/playlist/SegmentTimeline.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/playlist/SegmentTimeline.cpp b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
index 2f140d1112..c41c499940 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
@@ -77,7 +77,7 @@ stime_t SegmentTimeline::getMinAheadScaledTime(uint64_t number) const
const Element *el = *it;
if(number > el->number + el->r)
break;
- else if(number < el->number + el->r)
+ else if(number < el->number)
totalscaledtime += (el->d * (el->r + 1));
else /* within repeat range */
totalscaledtime += el->d * (el->number + el->r - number);
More information about the vlc-commits
mailing list