mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	resample: use calloc to make sure fields are 0
This commit is contained in:
		
							parent
							
								
									4e44da6c4b
								
							
						
					
					
						commit
						8513150bdf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -353,7 +353,7 @@ int resample_native_init(struct resample *r)
 | 
				
			||||||
	history_stride = SPA_ROUND_UP_N(2 * n_taps * sizeof(float), 64);
 | 
						history_stride = SPA_ROUND_UP_N(2 * n_taps * sizeof(float), 64);
 | 
				
			||||||
	history_size = r->channels * history_stride;
 | 
						history_size = r->channels * history_stride;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	d = malloc(sizeof(struct native_data) +
 | 
						d = calloc(1, sizeof(struct native_data) +
 | 
				
			||||||
			filter_size +
 | 
								filter_size +
 | 
				
			||||||
			history_size +
 | 
								history_size +
 | 
				
			||||||
			(r->channels * sizeof(float*)) +
 | 
								(r->channels * sizeof(float*)) +
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue