[vlc-commits] demux: adaptive: fix timeline total length after truncation

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 29 16:32:23 2020 +0100| [84a82941ac205fe639d6e8661951cae8dd77cabd] | committer: Francois Cartegnie

demux: adaptive: fix timeline total length after truncation

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

 modules/demux/adaptive/playlist/SegmentTimeline.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/playlist/SegmentTimeline.cpp b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
index c41c499940..69aed9bf37 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
@@ -204,6 +204,7 @@ size_t SegmentTimeline::pruneBySequenceNumber(uint64_t number)
             el->t += count * el->d;
             el->r -= count;
             prunednow += count;
+            totalLength -= count * el->d;
             break;
         }
         else



More information about the vlc-commits mailing list