shaka-packager/packager
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
..
app Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
buildtools/third_party Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
file Change CharReader to FileReader 2018-01-04 14:36:52 -08:00
hls Bug fixes and clean-ups for I-Frame playlists 2018-02-05 17:36:28 -08:00
media Copy over parameter sets in the sample if different to sample entry 2018-02-09 15:43:00 -08:00
mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
testing Add docker files for testing on various linux distros 2017-12-12 22:51:05 +00:00
third_party Fix build failures in MacOS 10.12.6 with XCode 9.0 2018-01-05 12:21:41 -08:00
tools [pssh-box] Support generating Widevine PSSH without content-id 2017-10-18 21:38:23 +00:00
version Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00
common.gypi Fix build failures in MacOS 10.12.6 with XCode 9.0 2018-01-05 12:21:41 -08:00
packager.cc Fix language option not honored on text streams 2018-02-08 03:48:46 +00:00
packager.gyp Move common manifest flags out of mpd_flags.cc 2018-01-19 21:02:54 +00:00
packager.h Support 'iframe_playlist_name' stream descriptor 2018-02-02 22:00:18 +00:00
packager_test.cc Add support for callback file 2017-09-07 19:26:26 +00:00
protoc.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
status.cc Cleans up Status class 2018-01-31 03:32:07 +00:00
status.h Cleans up Status class 2018-01-31 03:32:07 +00:00
status_test_util.h Move status.h under packager/ 2017-06-30 11:35:18 -07:00
status_unittest.cc Cleans up Status class 2018-01-31 03:32:07 +00:00