1
1
mirror of https://github.com/wader/fq.git synced 2024-10-26 20:06:29 +03:00

avi: Add unused field for extra indx chunk space

This commit is contained in:
Mattias Wadman 2023-10-10 16:46:00 +02:00
parent a9051e8c5a
commit 0f225c3245

View File

@ -454,7 +454,7 @@ func aviDecode(d *decode.D) any {
chunkID := d.FieldUTF8("chunk_id", 4)
aviDecorateStreamID(d, chunkID)
d.FieldU64("base")
d.FieldU32("unused")
d.FieldU32("unused0")
d.FieldArray("index", func(d *decode.D) {
for i := 0; i < int(nEntriesInUse); i++ {
d.FieldStruct("index", func(d *decode.D) {
@ -471,6 +471,9 @@ func aviDecode(d *decode.D) any {
})
}
})
if d.BitsLeft() > 0 {
d.FieldRawLen("unused1", d.BitsLeft())
}
return false, nil