File: rawspeed.uncompressed-color-dng.patch

package info (click to toggle)
libraw 0.17.2-6%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,636 kB
  • ctags: 4,409
  • sloc: cpp: 28,688; ansic: 16,372; perl: 147; makefile: 91; sh: 77
file content (13 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/RawSpeed/DngDecoder.cpp b/RawSpeed/DngDecoder.cpp
index 56c701b..98f2474 100644
--- a/RawSpeed/DngDecoder.cpp
+++ b/RawSpeed/DngDecoder.cpp
@@ -216,7 +216,7 @@ RawImage DngDecoder::decodeRawInternal() {
           if (bps != 8 && bps != 16)
             big_endian = true;
           try {
-            readUncompressedRaw(in, size, pos, width*bps / 8, bps, big_endian ? BitOrder_Jpeg : BitOrder_Plain);
+            readUncompressedRaw(in, size, pos, mRaw->getCpp()*width*bps / 8, bps, big_endian ? BitOrder_Jpeg : BitOrder_Plain);
           } catch(IOException &ex) {
             if (i > 0)
               mRaw->setError(ex.what());