mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	a2dp: fix sign of out_decoded
This commit is contained in:
		
							parent
							
								
									c1530ba171
								
							
						
					
					
						commit
						395a30b5d6
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -374,7 +374,7 @@ static int codec_encode(void *data,
 | 
			
		|||
	int res;
 | 
			
		||||
 | 
			
		||||
	res = sbc_encode(&this->sbc, src, src_size,
 | 
			
		||||
			dst, dst_size, dst_out);
 | 
			
		||||
			dst, dst_size, (ssize_t*)dst_out);
 | 
			
		||||
 | 
			
		||||
	if (res >= this->codesize)
 | 
			
		||||
		this->payload->frame_count += res / this->codesize;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -357,7 +357,7 @@ static int send_buffer(struct impl *this)
 | 
			
		|||
static int encode_buffer(struct impl *this, const void *data, int size)
 | 
			
		||||
{
 | 
			
		||||
	int processed;
 | 
			
		||||
	ssize_t out_encoded;
 | 
			
		||||
	size_t out_encoded;
 | 
			
		||||
	struct port *port = &this->port;
 | 
			
		||||
	const void *from_data = data;
 | 
			
		||||
	int from_size = size;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue