mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix bug: alloca wrong size for audio buffer.
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| User johns | ||||
| Date: | ||||
|  | ||||
|     Fix bug: alloca wrong size for audio buffer. | ||||
|     Handle jump in stream like stream start. | ||||
|     Always compile audio drift correction. | ||||
|     Add audio drift correction configuration to the setup. | ||||
|   | ||||
							
								
								
									
										2
									
								
								audio.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								audio.c
									
									
									
									
									
								
							| @@ -3561,7 +3561,7 @@ void AudioEnqueue(const void *samples, int count) | ||||
|     frames = | ||||
| 	count / (AudioRing[AudioRingWrite].InChannels * AudioBytesProSample); | ||||
|     buffer = | ||||
| 	alloca(frames * AudioRing[AudioRingWrite].InChannels * | ||||
| 	alloca(frames * AudioRing[AudioRingWrite].HwChannels * | ||||
| 	AudioBytesProSample); | ||||
|     AudioResample(samples, AudioRing[AudioRingWrite].InChannels, frames, | ||||
| 	buffer, AudioRing[AudioRingWrite].HwChannels); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user