mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Reduced number of bytes read
This commit is contained in:
		
							parent
							
								
									561ae3760c
								
							
						
					
					
						commit
						7328cf2e5e
					
				|  | @ -32,7 +32,7 @@ class PcdImageFile(ImageFile.ImageFile): | ||||||
|         assert self.fp is not None |         assert self.fp is not None | ||||||
| 
 | 
 | ||||||
|         self.fp.seek(2048) |         self.fp.seek(2048) | ||||||
|         s = self.fp.read(2048) |         s = self.fp.read(1539) | ||||||
| 
 | 
 | ||||||
|         if not s.startswith(b"PCD_"): |         if not s.startswith(b"PCD_"): | ||||||
|             msg = "not a PCD file" |             msg = "not a PCD file" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user