mirror of
https://github.com/wader/fq.git
synced 2024-12-24 22:05:31 +03:00
mp4: iinf: Only assume sub boxes for version 0
This commit is contained in:
parent
6013588723
commit
0e02bb669c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user