mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
DASH: Ignore stream defined index if manifest defines one.
Issue: #1287 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117225449
This commit is contained in:
parent
ae2e858978
commit
9b467b7c1b
1 changed files with 4 additions and 2 deletions
|
|
@ -463,12 +463,14 @@ public class DashChunkSource implements ChunkSource {
|
|||
if (initializationChunk.hasSampleFormat()) {
|
||||
representationHolder.sampleFormat = initializationChunk.getSampleFormat();
|
||||
}
|
||||
if (initializationChunk.hasSeekMap()) {
|
||||
// The null check avoids overwriting an index obtained from the manifest with one obtained
|
||||
// from the stream. If the manifest defines an index then the stream shouldn't, but in cases
|
||||
// where it does we should ignore it.
|
||||
if (representationHolder.segmentIndex == null && initializationChunk.hasSeekMap()) {
|
||||
representationHolder.segmentIndex = new DashWrappingSegmentIndex(
|
||||
(ChunkIndex) initializationChunk.getSeekMap(),
|
||||
initializationChunk.dataSpec.uri.toString());
|
||||
}
|
||||
|
||||
// The null check avoids overwriting drmInitData obtained from the manifest with drmInitData
|
||||
// obtained from the stream, as per DASH IF Interoperability Recommendations V3.0, 7.5.3.
|
||||
if (periodHolder.drmInitData == null && initializationChunk.hasDrmInitData()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue