mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Issue: #6501 Wrong segmentNumShift was calculated in copyWithNewRepresentation
In DefaultDashChunkSource.copyWithNewRepresentation, it will handle the logic that new MPD manifest file is updated and calculate a newSegmentNumShift for furthermore segNum index calculation in getSegmentUrl, when a shorter window MPD updated and then back to a longer window MPD, copyWithNewRepresentation will go into the overlap case but the new index actually contains the old index..
This commit is contained in:
parent
258fff422a
commit
c2d9960a6e
@ -700,6 +700,8 @@ public class DefaultDashChunkSource implements DashChunkSource {
|
||||
// There's a gap between the old index and the new one which means we've slipped behind the
|
||||
// live window and can't proceed.
|
||||
throw new BehindLiveWindowException();
|
||||
} else if (oldIndex.getFirstSegmentNum() >= newIndexFirstSegmentNum) {
|
||||
// The new index contains the old one, continue process the next segment
|
||||
} else {
|
||||
// The new index overlaps with the old one.
|
||||
newSegmentNumShift +=
|
||||
|
Loading…
x
Reference in New Issue
Block a user