[vlc-commits] demux: adaptive: fix hls live start issue
Francois Cartegnie
git at videolan.org
Thu Mar 9 17:19:56 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 9 17:17:40 2017 +0100| [86b62aaecd0605c532e37cd3fbfd3ec08b8fa38c] | committer: Francois Cartegnie
demux: adaptive: fix hls live start issue
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86b62aaecd0605c532e37cd3fbfd3ec08b8fa38c
---
modules/demux/adaptive/playlist/SegmentInformation.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index 552966e..e8bdb75 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -231,7 +231,7 @@ uint64_t SegmentInformation::getLiveStartSegmentNumber(uint64_t def) const
uint64_t number;
if( !segmentList->getSegmentNumberByScaledTime( bufferingstart, &number ) )
return list.front()->getSequenceNumber();
- if( number + OFFSET_FROM_END > list.front()->getSequenceNumber() )
+ if( number > list.front()->getSequenceNumber() + OFFSET_FROM_END )
number -= OFFSET_FROM_END;
else
number = list.front()->getSequenceNumber();
More information about the vlc-commits
mailing list