mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[master] Relocated new misplaced declarations in pngwutil.c
This commit is contained in:
		
							parent
							
								
									8a35e25852
								
							
						
					
					
						commit
						98aacb16c3
					
				| @ -682,6 +682,9 @@ png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length) | |||||||
|          if (length >= 2 && |          if (length >= 2 && | ||||||
|              png_ptr->height < 16384 && png_ptr->width < 16384) |              png_ptr->height < 16384 && png_ptr->width < 16384) | ||||||
|          { |          { | ||||||
|  |             unsigned int z_cinfo; | ||||||
|  |             unsigned int half_z_window_size; | ||||||
|  | 
 | ||||||
|             /* Compute the maximum possible length of the datastream */ |             /* Compute the maximum possible length of the datastream */ | ||||||
| 
 | 
 | ||||||
|             /* Number of pixels, plus for each row a filter byte and possible
 |             /* Number of pixels, plus for each row a filter byte and possible
 | ||||||
| @ -700,8 +703,8 @@ png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length) | |||||||
|                uncompressed_idat_size += ((png_ptr->height + 7)/8) * |                uncompressed_idat_size += ((png_ptr->height + 7)/8) * | ||||||
|                    (png_ptr->bit_depth < 8 ? 12 : 6); |                    (png_ptr->bit_depth < 8 ? 12 : 6); | ||||||
| 
 | 
 | ||||||
|             unsigned int z_cinfo = z_cmf >> 4; |             z_cinfo = z_cmf >> 4; | ||||||
|             unsigned int half_z_window_size = 1 << (z_cinfo + 7); |             half_z_window_size = 1 << (z_cinfo + 7); | ||||||
|             while (uncompressed_idat_size <= half_z_window_size && |             while (uncompressed_idat_size <= half_z_window_size && | ||||||
|                    half_z_window_size >= 256) |                    half_z_window_size >= 256) | ||||||
|             { |             { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Glenn Randers-Pehrson
						Glenn Randers-Pehrson