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.
1 parent 9798506 commit a9c9266Copy full SHA for a9c9266
src/librawspeed/decompressors/PanasonicV8Decompressor.cpp
@@ -428,6 +428,7 @@ int32_t inline PanasonicV8Decompressor::InternalDecoder::decodeNextDiffValue() {
428
// Retrieve the difference category, which indicates magnitude of the
429
// difference between the predicted and actual value.
430
const auto next16 = uint16_t(mBitPump.peekBits(16));
431
+ invariant(mLUT.size() == 1 + UINT16_MAX);
432
const auto& [codeLen, codeValue] = mLUT(next16);
433
if (codeValue == 0 && codeLen == 7)
434
ThrowRDE("Decoding encountered an invalid value!");
0 commit comments