[vlc-commits] demux: adaptive: strip off segmentlist ts offset

Francois Cartegnie git at videolan.org
Tue Jan 5 20:25:42 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan  4 21:19:59 2021 +0100| [dcb64419f0f35c1628bce77780d0697b3c98cc69] | committer: Francois Cartegnie

demux: adaptive: strip off segmentlist ts offset

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

 modules/demux/adaptive/playlist/SegmentList.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/playlist/SegmentList.cpp b/modules/demux/adaptive/playlist/SegmentList.cpp
index 255dc19cdc..de28abf487 100644
--- a/modules/demux/adaptive/playlist/SegmentList.cpp
+++ b/modules/demux/adaptive/playlist/SegmentList.cpp
@@ -167,7 +167,7 @@ bool SegmentList::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
     }
     else
     {
-        *time = VLC_TICK_INVALID;
+        *time = 0;
         *dur = 0;
         timescale = inheritTimescale();
 
@@ -205,7 +205,7 @@ bool SegmentList::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
             return false;
     }
 
-    *time = VLC_TICK_0 + timescale.ToTime(stime);
+    *time = timescale.ToTime(stime);
     *dur = timescale.ToTime(sduration);
     return true;
 }



More information about the vlc-commits mailing list