tests/dash_mpd: take account of Period start in expected timestamps
authorAlex Ashley <bugzilla@ashley-family.net>
Tue, 11 Dec 2018 14:43:21 +0000 (14:43 +0000)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Sat, 1 Jun 2019 21:25:33 +0000 (21:25 +0000)
commit015566daec774b19fa8eadce2361aa6814b8e7a0
treec40c942c1b75f4fedeb967040a5b385ea99fc11b
parenta11f7ed9244a6af9f1e77154e0a19e1462ec77d2
tests/dash_mpd: take account of Period start in expected timestamps

The start of each segment is relative to the Period start, minus
the presentation time offset.

As specified in section 5.3.9.6 of the MPEG DASH specification:
The value of the @t attribute minus the value of the
@presentationTimeOffset specifies the MPD start time of
the first Segment in the series.

Several tests use a Period@start value of 10 seconds, which either
needs to be taken into account when calculating expected timestamps
or have that attribute removed.

This commit uses a mix of updating the timestamps and removing the
start attribute, so that both the case of its presence and absence
is tested.
tests/check/elements/dash_mpd.c