We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0804b2b + f2ad598 commit a9a8880Copy full SHA for a9a8880
src/librawspeed/decoders/DngDecoder.cpp
@@ -603,7 +603,8 @@ void DngDecoder::handleMetadata(const TiffIFD* raw) {
603
mRaw->whitePoint = implicit_cast<int>((1UL << bps) - 1UL);
604
} else if (mRaw->getDataType() == RawImageType::F32) {
605
// Default white level is 1.0f. But we can't represent that here.
606
- mRaw->whitePoint = 65535;
+ // Fall back to uninitialized value instead.
607
+ mRaw->whitePoint = 65536;
608
}
609
610
if (raw->hasEntry(TiffTag::WHITELEVEL)) {
0 commit comments