[vlc-commits] demux: adaptive: fix invalid offset on start
Francois Cartegnie
git at videolan.org
Fri May 22 13:59:08 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 22 12:43:03 2020 +0200| [1027e60b7821888e6be1bf839591329161e8de90] | committer: Francois Cartegnie
demux: adaptive: fix invalid offset on start
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1027e60b7821888e6be1bf839591329161e8de90
---
modules/demux/adaptive/playlist/SegmentInformation.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index ac95876a2d..ad82fa53c1 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -375,6 +375,9 @@ bool SegmentInformation::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
SegmentList *segList;
MediaSegmentTemplate *mediaTemplate;
+ if(number == std::numeric_limits<uint64_t>::max())
+ return false;
+
if( (mediaTemplate = inheritSegmentTemplate()) )
{
const Timescale timescale = mediaTemplate->inheritTimescale();
More information about the vlc-commits
mailing list