Use flag instead of recalculating

This commit is contained in:
Eric Soroos 2021-01-10 19:31:56 +01:00
parent fda638befe
commit c9ea87ecfd

View File

@ -516,7 +516,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;