[vlc-commits] demux: dash: fix startnumber on template node inheritance (#25082)
Francois Cartegnie
git at videolan.org
Mon Dec 14 10:41:34 UTC 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Sep 5 16:33:49 2020 +0200| [26fdfd482cffd9aad2db049879d6de66f74b826f] | committer: Francois Cartegnie
demux: dash: fix startnumber on template node inheritance (#25082)
(cherry picked from commit eb1e8a6082791a97e371199884c98d00108b43de)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=26fdfd482cffd9aad2db049879d6de66f74b826f
---
modules/demux/adaptive/playlist/SegmentTemplate.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/adaptive/playlist/SegmentTemplate.cpp b/modules/demux/adaptive/playlist/SegmentTemplate.cpp
index 990ee0bb1c..b13f85a494 100644
--- a/modules/demux/adaptive/playlist/SegmentTemplate.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTemplate.cpp
@@ -96,6 +96,9 @@ size_t MediaSegmentTemplate::pruneBySequenceNumber(uint64_t number)
uint64_t MediaSegmentTemplate::inheritStartNumber() const
{
+ if( startNumber != std::numeric_limits<uint64_t>::max() )
+ return startNumber;
+
const SegmentInformation *ulevel = parentSegmentInformation ? parentSegmentInformation
: NULL;
for( ; ulevel ; ulevel = ulevel->parent )
More information about the vlc-commits
mailing list