summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-21 15:47:50 +0200
committerJohns <johns98@gmx.net>2012-04-21 15:47:50 +0200
commit93ddd26a4a8983859a4f6f29979f0c5b1cce12ed (patch)
treecb615884d1d7e31862850c460027dd767669c0e6 /audio.c
parente30e1e5aad2e35f35af248167b8366a75f28234d (diff)
downloadvdr-plugin-softhddevice-93ddd26a4a8983859a4f6f29979f0c5b1cce12ed.tar.gz
vdr-plugin-softhddevice-93ddd26a4a8983859a4f6f29979f0c5b1cce12ed.tar.bz2
Fix bug: alloca wrong size for audio buffer.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 9753970..84e2748 100644
--- a/audio.c
+++ b/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);