From 7e6a5d3bfa7b99d64e0a412355d7d867176b5b39 Mon Sep 17 00:00:00 2001 From: klirktag <78051485+klirktag@users.noreply.github.com> Date: Sun, 29 Oct 2023 19:54:23 +0100 Subject: [PATCH] patterns/mp4: Added stbl box (#185) --- patterns/mp4.hexpat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))]];