Skip to content

Commit

Permalink
fix repeated branches
Browse files Browse the repository at this point in the history
  • Loading branch information
maruncz committed Apr 27, 2022
1 parent d998bb4 commit 2949e7e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/librawspeed/decoders/RafDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,14 @@ void RafDecoder::decodeRawInternal() {

assert(!isCompressed());

if (8UL * counts->getU32() >= 2UL * 16UL * width * height) {
if ((8UL * counts->getU32() >= 2UL * 16UL * width * height)
|| (8UL * counts->getU32() >= 16UL * width * height)) {
bps = 16;
} else if (8UL * counts->getU32() >= 2UL * 14UL * width * height) {
} else if ((8UL * counts->getU32() >= 2UL * 14UL * width * height)
|| (8UL * counts->getU32() >= 14UL * width * height)) {
bps = 14;
} else if (8UL * counts->getU32() >= 2UL * 12UL * width * height) {
bps = 12;
} else if (8UL * counts->getU32() >= 16UL * width * height) {
bps = 16;
} else if (8UL * counts->getU32() >= 14UL * width * height) {
bps = 14;
} else if (8UL * counts->getU32() >= 12UL * width * height) {
} else if ((8UL * counts->getU32() >= 2UL * 12UL * width * height)
|| (8UL * counts->getU32() >= 12UL * width * height)) {
bps = 12;
} else {
ThrowRDE("Can not detect bitdepth. StripByteCounts = %u, width = %u, "
Expand Down

0 comments on commit 2949e7e

Please sign in to comment.