tmv: Add missing uses of tmv_dbl()
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
This commit is contained in:
		
							parent
							
								
									5df2779ef0
								
							
						
					
					
						commit
						12c9805eab
					
				
							
								
								
									
										2
									
								
								tsproc.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tsproc.c
									
									
									
									
									
								
							@ -214,7 +214,7 @@ int tsproc_update_offset(struct tsproc *tsp, tmv_t *offset, double *weight)
 | 
			
		||||
		return 0;
 | 
			
		||||
 | 
			
		||||
	if (weighting(tsp) && tsp->filtered_delay > 0 && raw_delay > 0) {
 | 
			
		||||
		*weight = (double)tsp->filtered_delay / raw_delay;
 | 
			
		||||
		*weight = tmv_dbl(tsp->filtered_delay) / tmv_dbl(raw_delay);
 | 
			
		||||
		if (*weight > 1.0)
 | 
			
		||||
			*weight = 1.0;
 | 
			
		||||
	} else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user