mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Planes should be int, not uint
This commit is contained in:
		
							parent
							
								
									daf7b6546e
								
							
						
					
					
						commit
						fda638befe
					
				|  | @ -321,7 +321,7 @@ decodeycbcr_err: | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int | int | ||||||
| _decodeStrip(Imaging im, ImagingCodecState state, TIFF *tiff, UINT8 planes, ImagingShuffler *unpackers) { | _decodeStrip(Imaging im, ImagingCodecState state, TIFF *tiff, int planes, ImagingShuffler *unpackers) { | ||||||
|     INT32 strip_row = 0; |     INT32 strip_row = 0; | ||||||
|     UINT8 *new_data; |     UINT8 *new_data; | ||||||
|     UINT32 rows_per_strip, row_byte_size; |     UINT32 rows_per_strip, row_byte_size; | ||||||
|  | @ -409,7 +409,7 @@ ImagingLibTiffDecode( | ||||||
|     uint16 photometric = 0;  // init to not PHOTOMETRIC_YCBCR
 |     uint16 photometric = 0;  // init to not PHOTOMETRIC_YCBCR
 | ||||||
|     int isYCbCr = 0; |     int isYCbCr = 0; | ||||||
|     uint16 planarconfig = 0; |     uint16 planarconfig = 0; | ||||||
|     UINT8 planes = 1; |     int planes = 1; | ||||||
|     ImagingShuffler unpackers[4]; |     ImagingShuffler unpackers[4]; | ||||||
| 
 | 
 | ||||||
|     memset(unpackers, 0, sizeof(ImagingShuffler) * 4); |     memset(unpackers, 0, sizeof(ImagingShuffler) * 4); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user