mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08: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
033b83c82e
commit
a9ed7a0181
@ -117,7 +117,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…
x
Reference in New Issue
Block a user