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

Francois Cartegnie git at videolan.org
Tue Mar 31 17:26:21 CEST 2020


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

demux: adaptive: fix segmentList start offset

(cherry picked from commit cb204e13ebde2397b288b848762a7761096d3c0f)

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

 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 e251c5642a..acd075d80a 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