Skip to content

Commit 9a28736

Browse files
committed
EBML: Specify more master elements
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
1 parent 0461b4a commit 9a28736

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

src/ebml/element_reader.rs

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,78 @@ ebml_master_elements! {
7373
Segment: {
7474
id: 0x1853_8067,
7575
children: [
76-
SeekHead: { 0x114D_9B74, Master },
7776
Info: { 0x1549_A966, Master },
7877
Cluster: { 0x1F43_B675, Master },
7978
Tracks: { 0x1654_AE6B, Master },
80-
Cues: { 0x1C53_BB6B, Master },
8179
Tags: { 0x1254_C367, Master },
8280
Attachments: { 0x1941_A469, Master },
8381
Chapters: { 0x1043_A770, Master },
8482
],
8583
},
84+
85+
// segment.info
86+
Info: {
87+
id: 0x1549_A966,
88+
children: [
89+
TimecodeScale: { 0x2AD7_B1, UnsignedInt },
90+
MuxingApp: { 0x4D80, Utf8 },
91+
WritingApp: { 0x5741, Utf8 },
92+
],
93+
},
94+
95+
// segment.tracks
96+
Tracks: {
97+
id: 0x1654_AE6B,
98+
children: [
99+
TrackEntry: { 0xAE, Master },
100+
],
101+
},
102+
103+
// segment.tracks.trackEntry
104+
TrackEntry: {
105+
id: 0xAE,
106+
children: [
107+
TrackType: { 0x83, UnsignedInt },
108+
FlagEnabled: { 0xB9, UnsignedInt },
109+
FlagDefault: { 0x88, UnsignedInt },
110+
FlagLacing: { 0x9C, UnsignedInt },
111+
DefaultDuration: { 0x23E3_83, UnsignedInt },
112+
TrackTimecodeScale: { 0x2331_59, Float },
113+
MaxBlockAdditionID: { 0x55EE, UnsignedInt },
114+
Language: { 0x22B5_9C, String },
115+
CodecID: { 0x86, String },
116+
CodecDelay: { 0x56AA, UnsignedInt },
117+
SeekPreRoll: { 0x56BB, UnsignedInt },
118+
TrackTranslate: { 0x6624, Master },
119+
Video: { 0xE0, Master },
120+
Audio: { 0xE1, Master },
121+
TrackOperation: { 0xE2, Master },
122+
ContentEncodings: { 0x6D80, Master },
123+
],
124+
},
125+
126+
// segment.attachments
127+
Attachments: {
128+
id: 0x1941_A469,
129+
children: [
130+
AttachedFile: { 0x61A7, Master },
131+
],
132+
},
133+
134+
// segment.attachments.attachedFile
135+
AttachedFile: {
136+
id: 0x61A7,
137+
children: [
138+
FileDescription: { 0x467E, String },
139+
FileName: { 0x466E, Utf8 },
140+
FileMimeType: { 0x4660, String },
141+
FileData: { 0x465C, Binary },
142+
FileUID: { 0x46AE, UnsignedInt },
143+
FileReferral: { 0x4675, Binary },
144+
FileUsedStartTime: { 0x4661, UnsignedInt },
145+
FileUsedEndTime: { 0x4662, UnsignedInt },
146+
],
147+
},
86148
}
87149

88150
struct ElementReaderContext {

0 commit comments

Comments
 (0)