Merge pull request #957 from Bastian35022/dev
Check for valid periods in DASH MPD after parsing.
This commit is contained in:
commit
be95968fe2
@ -159,6 +159,11 @@ public class MediaPresentationDescriptionParser extends DefaultHandler
|
||||
}
|
||||
}
|
||||
|
||||
if (periods.isEmpty()) {
|
||||
throw new ParserException(
|
||||
"no valid periods present in media presentation description");
|
||||
}
|
||||
|
||||
return buildMediaPresentationDescription(availabilityStartTime, durationMs, minBufferTimeMs,
|
||||
dynamic, minUpdateTimeMs, timeShiftBufferDepthMs, utcTiming, location, periods);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user