diff options
author | Johns <johns98@gmx.net> | 2012-04-21 15:47:50 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-04-21 15:47:50 +0200 |
commit | 93ddd26a4a8983859a4f6f29979f0c5b1cce12ed (patch) | |
tree | cb615884d1d7e31862850c460027dd767669c0e6 | |
parent | e30e1e5aad2e35f35af248167b8366a75f28234d (diff) | |
download | vdr-plugin-softhddevice-93ddd26a4a8983859a4f6f29979f0c5b1cce12ed.tar.gz vdr-plugin-softhddevice-93ddd26a4a8983859a4f6f29979f0c5b1cce12ed.tar.bz2 |
Fix bug: alloca wrong size for audio buffer.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | audio.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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. @@ -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); |