[vlc-commits] [Git][videolan/vlc][master] demux: dash: have startnumber default when parsing timelines
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Sat Jul 30 10:22:06 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
9ba23e7d by Francois Cartegnie at 2022-07-30T10:02:47+00:00
demux: dash: have startnumber default when parsing timelines
refs #27164
- - - - -
1 changed file:
- modules/demux/dash/mpd/IsoffMainParser.cpp
Changes:
=====================================
modules/demux/dash/mpd/IsoffMainParser.cpp
=====================================
@@ -517,6 +517,8 @@ void IsoffMainParser::parseTimeline(Node *node, AbstractMultipleSegmentBaseType
number = Integer<uint64_t>(node->getAttributeValue("startNumber"));
else if(base->inheritStartNumber())
number = base->inheritStartNumber();
+ if(number == std::numeric_limits<uint64_t>::max())
+ number = 1;
SegmentTimeline *timeline = new (std::nothrow) SegmentTimeline(base);
if(timeline)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9ba23e7d581144ffe3e3fad00d2d43ccdce21d43
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9ba23e7d581144ffe3e3fad00d2d43ccdce21d43
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list