Skip to content

Commit b05789f

Browse files
committed
Merge pull request opencv#9564 from saskatchewancatch:i9550
2 parents 1caca21 + 4832c24 commit b05789f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imgcodecs/src/grfmt_tiff.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ bool TiffDecoder::readHeader()
235235
m_hdr = false;
236236

237237
if( bpp > 8 &&
238-
((photometric != 2 && photometric != 1) ||
238+
((photometric > 2) ||
239239
(ncn != 1 && ncn != 3 && ncn != 4)))
240240
bpp = 8;
241241

0 commit comments

Comments
 (0)