diff --git a/brut.j.util/src/main/java/brut/util/ExtDataInput.java b/brut.j.util/src/main/java/brut/util/ExtDataInput.java index 72ef4140b2..72f4e15c54 100644 --- a/brut.j.util/src/main/java/brut/util/ExtDataInput.java +++ b/brut.j.util/src/main/java/brut/util/ExtDataInput.java @@ -69,7 +69,7 @@ public void skipCheckByte(byte expected) throws IOException { public void skipCheckChunkTypeInt(int expected, int possible) throws IOException { int got = readInt(); - if (got == possible) { + if (got == possible || got < expected) { skipCheckChunkTypeInt(expected, -1); } else if (got != expected) { throw new IOException(String.format("Expected: 0x%08x, got: 0x%08x", expected, got));