Skip to content

Commit

Permalink
mp4: Add comment about future truncate to size option
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 14, 2021
1 parent 40e26e8 commit 9ac17bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions format/mp4/boxes.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func decodeBox(ctx *decodeContext, d *decode.D) {
dataSize = boxSize - 8
}

// TODO: add truncate to size option?
// if dataSize > uint64(d.BitsLeft()/8) {
// dataSize = uint64(d.BitsLeft() / 8)
// }

// TODO: not sure about this
switch {
case typ == "\xa9too":
Expand Down

0 comments on commit 9ac17bd

Please sign in to comment.