mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Changed readcount so that _TIFFSetGetType can identify the type
This commit is contained in:
parent
8dd5913428
commit
6b21a96578
|
@ -378,7 +378,7 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_
|
||||||
TIFFClose(tiff);
|
TIFFClose(tiff);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
state->bytes = row_byte_size * tile_length;
|
state->bytes = row_byte_size * tile_length;
|
||||||
|
|
||||||
if (TIFFTileSize(tiff) > state->bytes) {
|
if (TIFFTileSize(tiff) > state->bytes) {
|
||||||
|
@ -578,7 +578,7 @@ int ImagingLibTiffMergeFieldInfo(ImagingCodecState state, TIFFDataType field_typ
|
||||||
|
|
||||||
// custom fields added with ImagingLibTiffMergeFieldInfo are only used for
|
// custom fields added with ImagingLibTiffMergeFieldInfo are only used for
|
||||||
// decoding, ignore readcount;
|
// decoding, ignore readcount;
|
||||||
int readcount = 0;
|
int readcount = 1;
|
||||||
// we support writing a single value, or a variable number of values
|
// we support writing a single value, or a variable number of values
|
||||||
int writecount = 1;
|
int writecount = 1;
|
||||||
// whether the first value should encode the number of values.
|
// whether the first value should encode the number of values.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user