Author: post
Date: 2010-04-25 14:22:47 +0200 (Sun, 25 Apr 2010)
New Revision: 225
Modified:
RawSpeed/RawDecoder.cpp
Log:
Throw insufficient data error as an IO exception, that will allow more images
to be partially decoded.
Modified: RawSpeed/RawDecoder.cpp
===================================================================
--- RawSpeed/RawDecoder.cpp 2010-04-25 12:17:44 UTC (rev 224)
+++ RawSpeed/RawDecoder.cpp 2010-04-25 12:22:47 UTC (rev 225)
@@ -46,7 +46,7 @@
if ((int)input.getRemainSize() > inputPitch)
h = input.getRemainSize() / inputPitch - 1;
else
- ThrowRDE("readUncompressedRaw: Not enough data to decode a single line.
Image file truncated.");
+ ThrowIOE("readUncompressedRaw: Not enough data to decode a single line.
Image file truncated.");
}
if (bitPerPixel > 16)
ThrowRDE("readUncompressedRaw: Unsupported bit depth");
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit