media/library/src/main/java/com/google/android/exoplayer2/util
olly 45c68a2fd5 Use separate mimeType for CEA-608 embedded in MP4
When CEA-608 is embedded in MP4 each packet consists of
cc_data_1 and cc_data_2 only. The marker_bits, cc_valid
and cc_type are implicit. As a result playback of CEA-608
embedded in MP4 broke when we started passing the extra
byte for the TS case (and adjusted the decoder to assume
the byte was present).

This change introduces a special mimeType for the case
where the byte is implicit (!). An alternative option
was to insert the extra byte every 2 bytes in the MP4
extractor, but this is really quite fiddly to get right.

Also made the loops in the 608/708 decoders robust against
input of the wrong length.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140609304
2016-11-30 22:02:55 +00:00
..
Assertions.java Fix a bunch more Javadoc 2016-08-31 15:25:24 +01:00
AtomicFile.java Fix some analysis warnings. 2016-11-25 20:18:32 +00:00
Clock.java Create Cronet extension in v2 2016-08-31 15:25:31 +01:00
CodecSpecificDataUtil.java SmoothStreaming fixes 2016-08-31 15:25:25 +01:00
ColorParser.java Use new import ordering. 2016-08-08 11:06:48 +01:00
ConditionVariable.java Finalize v2 directory + package name 2016-07-08 12:12:09 +01:00
FlacStreamInfo.java Finalize v2 directory + package name 2016-07-08 12:12:09 +01:00
LibraryLoader.java Allow replacement of libraries for Opus/Flac/Ffmpeg too 2016-09-13 17:44:10 +01:00
LongArray.java Consistent Javadoc for upstream package 2016-07-22 22:41:36 +01:00
MediaClock.java Consistent Javadoc for upstream package 2016-07-22 22:41:36 +01:00
MimeTypes.java Use separate mimeType for CEA-608 embedded in MP4 2016-11-30 22:02:55 +00:00
NalUnitUtil.java Fix a bunch more Javadoc 2016-08-31 15:25:24 +01:00
ParsableBitArray.java Simple language + Javadoc consistency 2016-07-28 20:04:40 +01:00
ParsableByteArray.java Big cleanup of mp4 metadata extraction 2016-10-26 23:45:50 +01:00
ParsableNalUnitBitArray.java Fix a bunch more Javadoc 2016-08-31 15:25:24 +01:00
Predicate.java Finalize v2 directory + package name 2016-07-08 12:12:09 +01:00
PriorityHandlerThread.java Finalize v2 directory + package name 2016-07-08 12:12:09 +01:00
PriorityTaskManager.java Make PriorityTaskManager constructor public. 2016-11-10 21:15:35 +00:00
ReusableBufferedOutputStream.java Use ReusableBufferedOutputStream for cache index file write operation 2016-11-25 20:18:32 +00:00
SlidingPercentile.java Consistent Javadoc for upstream package 2016-07-22 22:41:36 +01:00
StandaloneMediaClock.java Big (and hopefully near-final) rename. 2016-07-15 18:14:55 +01:00
SystemClock.java Create Cronet extension in v2 2016-08-31 15:25:31 +01:00
TraceUtil.java Fix a bunch more Javadoc 2016-08-31 15:25:24 +01:00
UriUtil.java Finalize v2 directory + package name 2016-07-08 12:12:09 +01:00
Util.java Fixed an error in the date and time parser's handling of time zones. 2016-11-30 21:57:29 +00:00
XmlPullParserUtil.java Simple language + Javadoc consistency 2016-07-28 20:04:40 +01:00