From 406263b485a3c1f2383089c0e8e6649b2ac13d78 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Wed, 8 Dec 2021 10:45:10 +0100 Subject: [PATCH] mp4: Add comment about hdlr.component_name prefix byte --- format/mp4/boxes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/mp4/boxes.go b/format/mp4/boxes.go index 2f8eb828..9cc4a06e 100644 --- a/format/mp4/boxes.go +++ b/format/mp4/boxes.go @@ -290,6 +290,7 @@ func init() { d.FieldUTF8NullFixedLen("component_manufacturer", 4) d.FieldU32("component_flags") d.FieldU32("component_flags_mask") + // TODO: sometimes has a length prefix byte, how to know? d.FieldUTF8NullFixedLen("component_name", int(d.BitsLeft()/8)) if ctx.currentTrack != nil { @@ -300,7 +301,6 @@ func init() { } } }, - "minf": decodeBoxes, "dinf": decodeBoxes, "dref": func(_ *decodeContext, d *decode.D) {