Skip to content

Commit

Permalink
Changed readcount so that _TIFFSetGetType can identify the type
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 29, 2020
1 parent 18ee51a commit 4178ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libImaging/TiffDecode.c
Expand Up @@ -378,7 +378,7 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_
TIFFClose(tiff);
return -1;
}

state->bytes = row_byte_size * tile_length;

if (TIFFTileSize(tiff) > state->bytes) {
Expand Down Expand Up @@ -578,7 +578,7 @@ int ImagingLibTiffMergeFieldInfo(ImagingCodecState state, TIFFDataType field_typ

// custom fields added with ImagingLibTiffMergeFieldInfo are only used for
// decoding, ignore readcount;
int readcount = 0;
int readcount = 1;
// we support writing a single value, or a variable number of values
int writecount = 1;
// whether the first value should encode the number of values.
Expand Down

0 comments on commit 4178ddc

Please sign in to comment.