Skip to content

[Dash] Support negative @r in SegmentTimeline #1787

@SLepUbIn

Description

@SLepUbIn

Hi,
when trying to parse this .mpd playlist from DashIf test vectors :
http://dash.edgesuite.net/dash264/TestCases/2c/qualcomm/1/MultiResMPEG2.mpd

the negative @r in <SegmentTimeline><S d="24576" r="-1" />
gives me an empty list of representation
method getFirstSegmentNum() returns 1
but trying to access a representation causes java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
The specs say :

A negative value of the @r attribute of the S element indicates that the duration indicated in @d attribute repeats until the start of the next S element, the end of the Period or until the next MPD update.

How could I deal with that ?
Manually editing the playlist and replacing "r=-1" by the actual number of chunks works fine, but obviously I can't rely on that.
Thanks !

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions