[vlc-commits] demux: adaptative: fix timeline pruning count

Francois Cartegnie git at videolan.org
Fri Oct 30 21:19:40 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 28 19:49:35 2015 +0100| [05663f7bcc67ea578fb38c6b54088cbad81814d9] | committer: Francois Cartegnie

demux: adaptative: fix timeline pruning count

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

 modules/demux/adaptative/playlist/SegmentTimeline.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptative/playlist/SegmentTimeline.cpp b/modules/demux/adaptative/playlist/SegmentTimeline.cpp
index da77382..2d6acb7 100644
--- a/modules/demux/adaptative/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptative/playlist/SegmentTimeline.cpp
@@ -140,7 +140,7 @@ size_t SegmentTimeline::pruneBySequenceNumber(uint64_t number)
         }
         else if(el->number + el->r >= number)
         {
-            uint64_t count = el->number + el->r + 1 - number;
+            uint64_t count = number - el->number;
             el->number += count;
             el->t += count * el->d;
             el->r -= count;



More information about the vlc-commits mailing list