mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
tiffdec: only request EXTRASAMPLES w/> 3 samples/px
Change-Id: I820e7de34e500c42ab51c97a70f25319807d58eb
This commit is contained in:
parent
f768218966
commit
97cce5ba83
@ -193,8 +193,8 @@ int ReadTIFF(const uint8_t* const data, size_t data_size,
|
|||||||
sizeof(*raster))) {
|
sizeof(*raster))) {
|
||||||
goto End;
|
goto End;
|
||||||
}
|
}
|
||||||
if (!TIFFGetField(tif, TIFFTAG_EXTRASAMPLES,
|
if (samples_per_px > 3 && !TIFFGetField(tif, TIFFTAG_EXTRASAMPLES,
|
||||||
&extra_samples, &extra_samples_ptr)) {
|
&extra_samples, &extra_samples_ptr)) {
|
||||||
fprintf(stderr, "Error! Cannot retrieve TIFF ExtraSamples info.\n");
|
fprintf(stderr, "Error! Cannot retrieve TIFF ExtraSamples info.\n");
|
||||||
goto End;
|
goto End;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user