[vlc-commits] demux: adaptive: fix segmentList start offset

Francois Cartegnie git at videolan.org
Tue Mar 31 17:23:09 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 31 17:15:47 2020 +0200| [cb204e13ebde2397b288b848762a7761096d3c0f] | committer: Francois Cartegnie

demux: adaptive: fix segmentList start offset

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb204e13ebde2397b288b848762a7761096d3c0f
---

 modules/demux/adaptive/logic/BufferingLogic.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/logic/BufferingLogic.cpp b/modules/demux/adaptive/logic/BufferingLogic.cpp
index 9153c298ba..8793027a11 100644
--- a/modules/demux/adaptive/logic/BufferingLogic.cpp
+++ b/modules/demux/adaptive/logic/BufferingLogic.cpp
@@ -326,7 +326,7 @@ uint64_t DefaultBufferingLogic::getLiveStartSegmentNumber(BaseRepresentation *re
         for(auto it = list.begin(); it != list.end(); ++it)
         {
             start = (*it)->getSequenceNumber();
-            if((*it)->duration.Get() < skipduration)
+            if((*it)->duration.Get() > skipduration)
                 break;
             skipduration -= (*it)->duration.Get();
         }



More information about the vlc-commits mailing list