shaka-packager/packager/mpd/test
KongQun Yang f8a1cb66ad Calculate presentationTimeOffset and Period@duration from segments
Prefer timestamps from Video AdaptationSets if available - this avoids
possible video playback jitters due to gaps.

presentationTimeOffset is not applied to the first period as it may in
negative dts which Chrome does not like: https://crbug.com/398141.

It is safe to apply to subsequent periods as the actual offset applied
takes Period@start into consideration:

    offset = Period@start - presentationTimeOffset

The result timestamp with offset applied is close to Period@start, so
it is unlikely to result in a negative dts value.

Closes b/73899306.

Change-Id: If8361f5469610093b3aac6675754536ad7e83c4c
2018-03-01 22:25:55 -08:00
..
data Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
schema Fix MPD validation problems 2016-01-05 13:50:32 -08:00
mpd_builder_test_helper.cc Windows build working 2016-08-18 08:30:26 -07:00
mpd_builder_test_helper.h Move SegmentTemplateTest and TimeShiftBufferDepthTest too 2017-12-15 20:05:32 +00:00
xml_compare.cc Clean up mpd_unittest 2017-12-15 20:04:47 +00:00
xml_compare.h [DASH] Support multiple period 2018-01-11 21:44:18 +00:00