mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
Merge "tiffdec: fix EXTRASAMPLES check"
This commit is contained in:
commit
a9c701e04f
@ -215,7 +215,8 @@ int ReadTIFF(const uint8_t* const data, size_t data_size,
|
|||||||
TIFFSwabArrayOfLong(raster, width * height);
|
TIFFSwabArrayOfLong(raster, width * height);
|
||||||
#endif
|
#endif
|
||||||
// if we have an alpha channel, we must un-multiply from rgbA to RGBA
|
// if we have an alpha channel, we must un-multiply from rgbA to RGBA
|
||||||
if (samples_per_px > 3 && extra_samples == 1) {
|
if (extra_samples == 1 && extra_samples_ptr != NULL &&
|
||||||
|
extra_samples_ptr[0] == EXTRASAMPLE_ASSOCALPHA) {
|
||||||
uint32_t y;
|
uint32_t y;
|
||||||
uint8_t* tmp = (uint8_t*)raster;
|
uint8_t* tmp = (uint8_t*)raster;
|
||||||
for (y = 0; y < height; ++y) {
|
for (y = 0; y < height; ++y) {
|
||||||
|
Loading…
Reference in New Issue
Block a user