mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix DashDownloader failure for some multi segment representations
Issue: #3729 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190922866
This commit is contained in:
parent
ba8bbd8941
commit
1d2d777f66
1 changed files with 2 additions and 1 deletions
|
|
@ -116,7 +116,8 @@ public final class DashDownloader extends SegmentDownloader<DashManifest, Repres
|
|||
}
|
||||
}
|
||||
|
||||
int segmentCount = index.getSegmentCount(C.TIME_UNSET);
|
||||
long periodDurationUs = manifest.getPeriodDurationUs(key.periodIndex);
|
||||
int segmentCount = index.getSegmentCount(periodDurationUs);
|
||||
if (segmentCount == DashSegmentIndex.INDEX_UNBOUNDED) {
|
||||
throw new DownloadException("Unbounded index for representation: " + key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue