Use flag instead of recalculating

This commit is contained in:
Eric Soroos 2021-01-10 19:31:56 +01:00
parent 0f2617aff9
commit 6e57481a35

View File

@ -509,7 +509,7 @@ ImagingLibTiffDecode(
// if number of bands is 1, there is no difference with contig case
if (planarconfig == PLANARCONFIG_SEPARATE &&
im->bands > 1 &&
photometric != PHOTOMETRIC_YCBCR) {
isYCbCr) {
uint16 bits_per_sample = 8;