shaka-packager/packager
KongQun Yang 516430bde1 [MP4] Truncate segment references in 'sidx' if necessary
The reference count in 'sidx' box is a uint16 field, which allows at
most 0xFFFF entries, i.e. at most 0xFFFF subsegments, which is roughly
18 hours for one second segments.

Do not fail packaging when it happens. Instead, generate a warning and
truncate the number of references to 0xFFFF instead.

Note that the actual number of mp4 fragments in the mp4 file can still
be more than 0xFFFF. The stream will not play to the end in DASH, but
it will play successfully in HLS.

Workarounds #862.

Change-Id: Ib3930418d1528df1f9ea64cda0d0ebaa78d26abb
2020-12-11 19:07:56 +00:00
..
app Add TTML-in-MP4 output support. 2020-11-20 15:10:33 -08:00
buildtools/third_party Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
file Call WSAStartup once for every new socket 2019-11-20 14:00:51 -08:00
hls [HLS] Fixes attributes for DVS tracks 2020-11-05 02:56:53 +00:00
media [MP4] Truncate segment references in 'sidx' if necessary 2020-12-11 19:07:56 +00:00
mpd Output SegmentList for some text streams. 2020-12-10 22:21:25 +00:00
testing Fix docker build 2020-11-09 18:13:51 +00:00
third_party Add libpng to third-party. 2020-12-08 19:23:39 +00:00
tools Fix python3 in pssh-box 2020-12-11 09:43:29 -08:00
version Fix failures with latest gpylint 2020-06-03 22:59:22 +00:00
common.gypi Don't use Chromium sysroot. 2020-09-01 17:59:52 +00:00
packager.cc Add TTML-in-MP4 output support. 2020-11-20 15:10:33 -08:00
packager.gyp Add TTML text output. 2020-11-19 18:03:39 +00:00
packager.h Work around non-deterministic tests. 2020-10-20 22:00:39 +00:00
packager_test.cc Return an error when seeing duplicated outputs 2018-11-27 22:38:48 +00:00
protoc.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
status.cc Fix error code message for trick play error 2018-12-13 00:26:55 +00:00
status.h Cleans up Status class 2018-01-31 03:32:07 +00:00
status_macros.h Generate full segment after cue point 2018-03-27 19:14:26 +00:00
status_test_util.h Implement multi DRM support. (Part 1) 2018-03-03 01:39:16 +00:00
status_unittest.cc Cleans up Status class 2018-01-31 03:32:07 +00:00