TWebPSetupEncode(): fix logic problem (and instead of or) in test that checks input is 8bit unsigned data
This commit is contained in:
parent
6b3b189d5b
commit
8a58319106
@ -333,7 +333,7 @@ TWebPSetupEncode(TIFF* tif)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check bits per sample and data type */
|
/* check bits per sample and data type */
|
||||||
if ((nBitsPerSample != 8) && (sampleFormat != 1)) {
|
if ((nBitsPerSample != 8) || (sampleFormat != SAMPLEFORMAT_UINT)) {
|
||||||
TIFFErrorExt(tif->tif_clientdata, module,
|
TIFFErrorExt(tif->tif_clientdata, module,
|
||||||
"WEBP driver requires 8 bit unsigned data");
|
"WEBP driver requires 8 bit unsigned data");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user