Skip to content

Commit

Permalink
mp4: Fix bug in readHeader()
Browse files Browse the repository at this point in the history
  • Loading branch information
iizukanao committed Jun 23, 2016
1 parent 3cc130e commit cdab04d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mp4.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ class Box
destObj.size = bits.read_bits 64 # TODO: might lose some precision
headerLen += 8
if destObj.typeStr is 'uuid'
usertype = bits.read_bytes 16
destObj.usertype = bits.read_bytes 16
headerLen += 16

if destObj.size > 0
Expand All @@ -736,9 +736,6 @@ class Box
destObj.data = bits.remaining_buffer()
destObj.size = headerLen + destObj.data.length

if destObj.typeStr is 'uuid'
box.usertype = usertype

return

@readLanguageCode: (bits) ->
Expand Down

0 comments on commit cdab04d

Please sign in to comment.