mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
demux: dash: handle infinite repeat in timeline
no spec... guessing
This commit is contained in:
parent
7256300850
commit
0d6a31dcda
@ -45,6 +45,7 @@
|
||||
#include "../adaptive/tools/Conversions.hpp"
|
||||
#include <vlc_stream.h>
|
||||
#include <cstdio>
|
||||
#include <limits>
|
||||
|
||||
using namespace dash::mpd;
|
||||
using namespace adaptive::xml;
|
||||
@ -461,9 +462,13 @@ void IsoffMainParser::parseTimeline(Node *node, MediaSegmentTemplate *templ)
|
||||
if(!s->hasAttribute("d")) /* Mandatory */
|
||||
continue;
|
||||
stime_t d = Integer<stime_t>(s->getAttributeValue("d"));
|
||||
uint64_t r = 0; // never repeats by default
|
||||
int64_t r = 0; // never repeats by default
|
||||
if(s->hasAttribute("r"))
|
||||
r = Integer<uint64_t>(s->getAttributeValue("r"));
|
||||
{
|
||||
r = Integer<int64_t>(s->getAttributeValue("r"));
|
||||
if(r < 0)
|
||||
r = std::numeric_limits<unsigned>::max();
|
||||
}
|
||||
|
||||
if(s->hasAttribute("t"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user