mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-25 00:00:03 -04:00
Update imageio/imageio-dds/src/main/java/com/twelvemonkeys/imageio/plugins/dds/DDSHeader.java
Improve IIOException "Invalid DDS header size" Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ public final class DDSHeader {
|
||||
// https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-header
|
||||
int dwSize = imageInput.readInt(); // [4,7]
|
||||
if (dwSize != DDS.HEADER_SIZE) {
|
||||
throw new IIOException("Invalid header size: " + dwSize);
|
||||
throw new IIOException(String.format("Invalid DDS header size (expected %d): %d", DDS.HEADER_SIZE, dwSize);
|
||||
}
|
||||
|
||||
// Verify flags
|
||||
|
||||
Reference in New Issue
Block a user