Skip to content

Commit

Permalink
mp4,ctts: Seem more usable to treat sample count/offset as signed
Browse files Browse the repository at this point in the history
Seems to different between specs
Modify avc.fqtest to generate a ctts box
  • Loading branch information
wader committed Dec 20, 2021
1 parent e1e8a23 commit eb9698f
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 322 deletions.
4 changes: 2 additions & 2 deletions format/mp4/boxes.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ func init() {
entryCount := d.FieldU32("entry_count")
var i uint64
d.FieldStructArrayLoop("entries", "entry", func() bool { return i < entryCount }, func(d *decode.D) {
d.FieldU32("sample_count")
d.FieldU32("sample_offset")
d.FieldS32("sample_count")
d.FieldS32("sample_offset")
i++
})
},
Expand Down
Loading

0 comments on commit eb9698f

Please sign in to comment.