Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
better unsigned integer handling
Browse files Browse the repository at this point in the history
git-svn-id: https://flazr.svn.sourceforge.net/svnroot/flazr/trunk/flazr@80 5dee199b-8608-4927-992f-dc734163a847
  • Loading branch information
ptrthomas committed Dec 18, 2009
1 parent 39801e0 commit 5d702bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/flazr/io/f4v/Box.java
Expand Up @@ -44,7 +44,7 @@ public Box(final BufferReader in, final long endPos) {
if (boxSize == 1) { // extended
final byte[] extBytes = in.readBytes(8);
final BigInteger bigLen = new BigInteger(1, extBytes);
payloadSize = bigLen.intValue() - 16;
payloadSize = bigLen.longValue() - 16;
} else if (boxSize == 0) { // decided by parent bound
payloadSize = endPos - in.position();
} else {
Expand Down

0 comments on commit 5d702bc

Please sign in to comment.