mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Parse CryptoInfo from simpleTag and set it into DrmInitData.
PiperOrigin-RevId: 418960700
This commit is contained in:
parent
5370332fcc
commit
1380655747
1 changed files with 8 additions and 2 deletions
|
|
@ -1325,7 +1325,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);
|
assertInTrackEntry(currentElementId);
|
||||||
return currentTrack;
|
return currentTrack;
|
||||||
}
|
}
|
||||||
|
|
@ -1900,7 +1905,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 DISPLAY_UNIT_PIXELS = 0;
|
||||||
private static final int MAX_CHROMATICITY = 50_000; // Defined in CTA-861.3.
|
private static final int MAX_CHROMATICITY = 50_000; // Defined in CTA-861.3.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue