[vlc-commits] demux: adaptative: fix last split segment upper boundary
Francois Cartegnie
git at videolan.org
Tue May 12 18:28:59 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at 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;
More information about the vlc-commits
mailing list