Author: post
Date: 2009-09-06 12:45:47 +0200 (Sun, 06 Sep 2009)
New Revision: 145

Modified:
   RawSpeed/Rw2Decoder.cpp
Log:
RW2Decoder: Use default aspect in checksupport to avoid error message.

Modified: RawSpeed/Rw2Decoder.cpp
===================================================================
--- RawSpeed/Rw2Decoder.cpp     2009-09-06 09:51:42 UTC (rev 144)
+++ RawSpeed/Rw2Decoder.cpp     2009-09-06 10:45:47 UTC (rev 145)
@@ -119,6 +119,10 @@
   int byte;
 
   if (!vbits) {
+    /* On truncated files this routine will just return just for the truncated
+     * part of the file. Since there is no chance of affecting output buffer
+     * size we allow the decoder to decode this
+     */
     if (input->getRemainSize() < 0x4000-load_flags) {
       memcpy (buf+load_flags, input->getData(), input->getRemainSize());
       input->skipBytes(input->getRemainSize());
@@ -146,7 +150,7 @@
 
   string make = data[0]->getEntry(MAKE)->getString();
   string model = data[0]->getEntry(MODEL)->getString();
-  this->checkCameraSupported(meta, make, model, "");
+  this->checkCameraSupported(meta, make, model, getMode(model));
 }
 
 void Rw2Decoder::decodeMetaData( CameraMetaData *meta )


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to