Parse CryptoInfo from simpleTag and set it into DrmInitData.

PiperOrigin-RevId: 418960700
This commit is contained in:
olly 2021-12-30 16:10:35 +00:00 committed by tonihei
parent b05583f00d
commit d9fd85aa63

View File

@ -1327,7 +1327,12 @@ public class MatroskaExtractor implements Extractor {
}
}
private Track getCurrentTrack(int currentElementId) throws ParserException {
/**
* Returns the track corresponding to the current TrackEntry element.
*
* @throws ParserException if the element id is not in a TrackEntry.
*/
protected Track getCurrentTrack(int currentElementId) throws ParserException {
assertInTrackEntry(currentElementId);
return currentTrack;
}
@ -1902,7 +1907,8 @@ public class MatroskaExtractor implements Extractor {
}
}
private static final class Track {
/** Holds data corresponding to a single track. */
protected static final class Track {
private static final int DISPLAY_UNIT_PIXELS = 0;
private static final int MAX_CHROMATICITY = 50_000; // Defined in CTA-861.3.