1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00

mp4: Add comment about hdlr.component_name prefix byte

This commit is contained in:
Mattias Wadman 2021-12-08 10:45:10 +01:00
parent c2131bb4a0
commit 406263b485

View File

@ -290,6 +290,7 @@ func init() {
d.FieldUTF8NullFixedLen("component_manufacturer", 4) d.FieldUTF8NullFixedLen("component_manufacturer", 4)
d.FieldU32("component_flags") d.FieldU32("component_flags")
d.FieldU32("component_flags_mask") d.FieldU32("component_flags_mask")
// TODO: sometimes has a length prefix byte, how to know?
d.FieldUTF8NullFixedLen("component_name", int(d.BitsLeft()/8)) d.FieldUTF8NullFixedLen("component_name", int(d.BitsLeft()/8))
if ctx.currentTrack != nil { if ctx.currentTrack != nil {
@ -300,7 +301,6 @@ func init() {
} }
} }
}, },
"minf": decodeBoxes, "minf": decodeBoxes,
"dinf": decodeBoxes, "dinf": decodeBoxes,
"dref": func(_ *decodeContext, d *decode.D) { "dref": func(_ *decodeContext, d *decode.D) {