mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sample-util: fix iteration loop when adjusting volume of s24 samples
This commit is contained in:
		
							parent
							
								
									3a7b287c7e
								
							
						
					
					
						commit
						d2b5ae5525
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -831,9 +831,9 @@ void pa_volume_memchunk(
 | 
			
		|||
 | 
			
		||||
            calc_linear_integer_volume(linear, volume);
 | 
			
		||||
 | 
			
		||||
            e = (uint8_t*) ptr + c->length/3;
 | 
			
		||||
            e = (uint8_t*) ptr + c->length;
 | 
			
		||||
 | 
			
		||||
            for (channel = 0, d = ptr; d < e; d++) {
 | 
			
		||||
            for (channel = 0, d = ptr; d < e; d += 3) {
 | 
			
		||||
                int64_t t;
 | 
			
		||||
 | 
			
		||||
                t = (int64_t)((int32_t) (PA_READ24NE(d) << 8));
 | 
			
		||||
| 
						 | 
				
			
			@ -854,9 +854,9 @@ void pa_volume_memchunk(
 | 
			
		|||
 | 
			
		||||
            calc_linear_integer_volume(linear, volume);
 | 
			
		||||
 | 
			
		||||
            e = (uint8_t*) ptr + c->length/3;
 | 
			
		||||
            e = (uint8_t*) ptr + c->length;
 | 
			
		||||
 | 
			
		||||
            for (channel = 0, d = ptr; d < e; d++) {
 | 
			
		||||
            for (channel = 0, d = ptr; d < e; d += 3) {
 | 
			
		||||
                int64_t t;
 | 
			
		||||
 | 
			
		||||
                t = (int64_t)((int32_t) (PA_READ24RE(d) << 8));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue