Author: post
Date: 2010-11-22 19:19:20 +0100 (Mon, 22 Nov 2010)
New Revision: 301

Modified:
   RawSpeed/LJpegPlain.cpp
Log:
Check slice alignment in generic decoder.

Modified: RawSpeed/LJpegPlain.cpp
===================================================================
--- RawSpeed/LJpegPlain.cpp     2010-11-21 23:18:03 UTC (rev 300)
+++ RawSpeed/LJpegPlain.cpp     2010-11-22 18:19:20 UTC (rev 301)
@@ -253,7 +253,8 @@
     for (uint32 i = 0; i < comps; i++) {
       p[i] = predict[i];
       // Ensure, that there is a slice shift at new line
-      _ASSERTE(pixInSlice == 0 || maxSuperV == 1);
+      if (!(pixInSlice == 0 || maxSuperV == 1))
+        ThrowRDE("LJpegPlain::decodeScanLeftGeneric: Slice not placed at new 
line");
     }
     predict = dest;
     x = 0;


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

Reply via email to