mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 16:37:32 +03:00 
			
		
		
		
	Merge pull request #216 from angelnu/master
Check missing qtables parameter
This commit is contained in:
		
						commit
						7f408e0361
					
				
							
								
								
									
										4
									
								
								encode.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								encode.c
									
									
									
									
									
								
							|  | @ -519,7 +519,7 @@ static unsigned int** get_qtables_arrays(PyObject* qtables) { | ||||||
|     int i, j, num_tables; |     int i, j, num_tables; | ||||||
|     unsigned int **qarrays; |     unsigned int **qarrays; | ||||||
| 
 | 
 | ||||||
|     if (qtables == Py_None) { |     if ((qtables ==  NULL) || (qtables == Py_None)) { | ||||||
|         return NULL; |         return NULL; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -589,7 +589,7 @@ PyImaging_JpegEncoderNew(PyObject* self, PyObject* args) | ||||||
|     int streamtype = 0; /* 0=interchange, 1=tables only, 2=image only */ |     int streamtype = 0; /* 0=interchange, 1=tables only, 2=image only */ | ||||||
|     int xdpi = 0, ydpi = 0; |     int xdpi = 0, ydpi = 0; | ||||||
|     int subsampling = -1; /* -1=default, 0=none, 1=medium, 2=high */ |     int subsampling = -1; /* -1=default, 0=none, 1=medium, 2=high */ | ||||||
|     PyObject* qtables; |     PyObject* qtables=NULL; | ||||||
|     unsigned int **qarrays = NULL; |     unsigned int **qarrays = NULL; | ||||||
|     char* extra = NULL; |     char* extra = NULL; | ||||||
|     int extra_size; |     int extra_size; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user