diff --git a/patterns/mp4.hexpat b/patterns/mp4.hexpat index 26417aa..e642ae9 100644 --- a/patterns/mp4.hexpat +++ b/patterns/mp4.hexpat @@ -165,7 +165,6 @@ struct SubMediaInformationBox { ("hdlr"): HandlerBox box [[inline]]; ("dinf"): DataInformationBox box [[inline]]; (_): UnknownBox box [[inline]]; - // TODO: Add stbl } } [[name(std::format("MediaInformationBox({})", box.type))]]; @@ -173,6 +172,10 @@ struct MediaInformationBox : BaseBox { SubMediaInformationBox box[while($ < endOffset)] [[inline]]; }; +struct SampleBoxTable : FullBox { + SubMediaInformationBox box[while($ < endOffset)] [[inline]]; +}; + struct MediaHeaderBox : FullBox { if (this.version == 1) { u64 creation_time; @@ -196,6 +199,7 @@ struct SubMediaBox { ("mdhd"): MediaHeaderBox box [[inline]]; ("hdlr"): HandlerBox box [[inline]]; ("minf"): MediaInformationBox box [[inline]]; + ("sbtl"): SampleBoxTable box [[inline]]; (_): UnknownBox box [[inline]]; } } [[name(std::format("MediaBox({})", box.type))]];