vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Tue May 12 
16:24:47 2015 +0200| [0c8ef54332db56d973d3df525a90f92ebb0a998e] | committer: 
Francois Cartegnie

demux: adaptative: fix last split segment upper boundary

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

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

diff --git a/modules/demux/adaptative/playlist/SegmentInformation.cpp 
b/modules/demux/adaptative/playlist/SegmentInformation.cpp
index 5a50112..dbb67ce 100644
--- a/modules/demux/adaptative/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptative/playlist/SegmentInformation.cpp
@@ -279,7 +279,7 @@ static void insertIntoSegment(std::vector<ISegment *> 
&seglist, size_t start,
         {
             SubSegment *subsegment = new SubSegment(segment,
                                                     start + 
segment->getOffset(),
-                                                    end + 
segment->getOffset());
+                                                    (end != 0) ? end + 
segment->getOffset() : 0);
             segment->addSubSegment(subsegment);
             segment->startTime.Set(time);
             break;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to