You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
base_offset_size is taken from the set {0, 4, 8} and indicates the length in bytes of the base_offset field.
br.Discard expects a number of bytes to discard, and it's being called as if base_offset_size is a number of bits. This can be fixed by removing the / 8 or by changing that block to this:
Uh oh!
There was an error while loading. Please reload this page.
Parsing a heif file containing an item location box with a base offset size > 0 fails. For example, parsing https://github.com/nokiatech/heif/blob/gh-pages/content/image_sequences/bird_burst.heic results in an EOF. This is caused by the following logic in parseItemLocationBox:
From the spec:
br.Discard
expects a number of bytes to discard, and it's being called as ifbase_offset_size
is a number of bits. This can be fixed by removing the/ 8
or by changing that block to this:ent.BaseOffset, _ = br.readUintN(ilb.baseOffsetSize * 8)
The text was updated successfully, but these errors were encountered: