shaka-packager/packager/media/formats/mp4
KongQun Yang 1223694249 Do not force earliest_presentation_time to 0 for VOD
Instead, the actual earliest presentation time is used except for
the first segment if there is an offset between presentation time
(pts) and decoding time (dts).

Chrome (as of v66) reports dts instead of pts in buffered ranges in
MSE API. To avoid breaking Chrome, the earliest_presentation_time
of the first segment is set to its dts as Chrome does not like negative
values for
  adjusted dts = dts + Period@start (0 for the first period)
                 - presentationTimeOffset (earliest_presentation_time).

Fixes #303.

Change-Id: I5ca80e05d5570961400499436f2bcc01f06e69e0
2018-04-20 13:58:01 -07:00
..
box.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_buffer.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_definitions.cc Skip reading meta box as it may not be well formed 2018-03-01 22:26:16 -08:00
box_definitions.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_definitions_comparison.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_definitions_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_reader.cc Skip reading meta box as it may not be well formed 2018-03-01 22:26:16 -08:00
box_reader.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_reader_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
chunk_info_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
chunk_info_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
composition_offset_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
composition_offset_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
decoding_time_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
decoding_time_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
fragmenter.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-20 13:58:01 -07:00
fragmenter.h Do not force earliest_presentation_time to 0 for VOD 2018-04-20 13:58:01 -07:00
key_frame_info.h Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
mp4.gyp Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
mp4_media_parser.cc Fix incorrect CHANNELS reporting for AC3/EC3 2018-01-11 03:50:56 +00:00
mp4_media_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
mp4_media_parser_unittest.cc Handle additional unused 'mdat' properly 2017-12-01 00:28:30 +00:00
mp4_muxer.cc Fix fMP4 'cbcs' playback issue in Safari 2018-02-08 23:40:46 -08:00
mp4_muxer.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
multi_segment_segmenter.cc Rewrite init segment in MultiSegmentSegmenter::DoFinalize 2018-03-05 17:50:12 -08:00
multi_segment_segmenter.h Rewrite init segment in MultiSegmentSegmenter::DoFinalize 2018-03-05 17:50:12 -08:00
segmenter.cc Rewrite init segment in MultiSegmentSegmenter::DoFinalize 2018-03-05 17:50:12 -08:00
segmenter.h Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
single_segment_segmenter.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-20 13:58:01 -07:00
single_segment_segmenter.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
sync_sample_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
sync_sample_iterator_unittest.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
track_run_iterator.cc Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00
track_run_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
track_run_iterator_unittest.cc Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00