[vlc-commits] demux: dash: fix split by index end offset

Francois Cartegnie git at videolan.org
Tue Sep 1 15:58:39 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 31 17:52:07 2015 +0200| [1745ddf1385aa6fe412e79ff7c8c5f1255d87d88] | committer: Francois Cartegnie

demux: dash: fix split by index end offset

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

 modules/demux/adaptative/playlist/SegmentInformation.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/adaptative/playlist/SegmentInformation.cpp b/modules/demux/adaptative/playlist/SegmentInformation.cpp
index 3bb12fa..a809c7b 100644
--- a/modules/demux/adaptative/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptative/playlist/SegmentInformation.cpp
@@ -376,8 +376,7 @@ void SegmentInformation::SplitUsingIndex(std::vector<SplitPoint> &splitlist)
         if(splitIt == splitlist.begin() && split.offset == 0)
             continue;
         time = split.time;
-        insertIntoSegment(seglist, start, end, time * i_timescale / CLOCK_FREQ);
-        end++;
+        insertIntoSegment(seglist, start, end - 1, time * i_timescale / CLOCK_FREQ);
     }
 
     if(start != 0)



More information about the vlc-commits mailing list