mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	resampler: Remove invalid channel asserts in peak and trivial
The incoming channel count will be fixed up by the remapping code before the resampler is invoked.
This commit is contained in:
		
							parent
							
								
									bb2e60a142
								
							
						
					
					
						commit
						a0b5f29b42
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1421,7 +1421,6 @@ static void trivial_resample(pa_resampler *r, const pa_memchunk *input, unsigned
 | 
			
		|||
    pa_assert(input);
 | 
			
		||||
    pa_assert(output);
 | 
			
		||||
    pa_assert(out_n_frames);
 | 
			
		||||
    pa_assert(r->i_ss.channels == r->o_ss.channels);
 | 
			
		||||
 | 
			
		||||
    fz = r->w_sz * r->o_ss.channels;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1496,7 +1495,6 @@ static void peaks_resample(pa_resampler *r, const pa_memchunk *input, unsigned i
 | 
			
		|||
    pa_assert(output);
 | 
			
		||||
    pa_assert(out_n_frames);
 | 
			
		||||
    pa_assert(r->i_ss.rate >= r->o_ss.rate);
 | 
			
		||||
    pa_assert(r->i_ss.channels == r->o_ss.channels);
 | 
			
		||||
    pa_assert(r->work_format == PA_SAMPLE_S16NE || r->work_format == PA_SAMPLE_FLOAT32NE);
 | 
			
		||||
 | 
			
		||||
    src = (uint8_t*) pa_memblock_acquire(input->memblock) + input->index;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue