mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: guard against NULL convolver
The convolver can be NULL when the IR has 0 length.
This commit is contained in:
		
							parent
							
								
									16b7ab29c1
								
							
						
					
					
						commit
						0096836af0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -251,7 +251,7 @@ static int convolver1_run(struct convolver1 *conv, const float *input, float *ou
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int i, processed = 0;
 | 
						int i, processed = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (conv->segCount == 0) {
 | 
						if (conv == NULL || conv->segCount == 0) {
 | 
				
			||||||
		fft_clear(output, len);
 | 
							fft_clear(output, len);
 | 
				
			||||||
		return len;
 | 
							return len;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue