1
1
mirror of https://github.com/wader/fq.git synced 2024-12-24 13:52:02 +03:00

mp4: iinf: Only assume sub boxes for version 0

This commit is contained in:
Mattias Wadman 2022-05-04 15:35:00 +02:00
parent 6013588723
commit 0e02bb669c

View File

@ -976,10 +976,14 @@ func init() {
}
},
"iinf": func(ctx *decodeContext, d *decode.D) {
d.FieldU8("version")
version := d.FieldU8("version")
d.FieldU24("flags")
_ = d.FieldU16("entry_count")
decodeBoxes(ctx, d)
if version == 0 {
_ = d.FieldU16("entry_count")
decodeBoxes(ctx, d)
} else {
d.FieldRawLen("data", d.BitsLeft())
}
},
"iprp": decodeBoxes,
"ipco": decodeBoxes,