summaryrefslogtreecommitdiff
path: root/codecs/codec_resample.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-01-10 23:10:00 +0000
committerRussell Bryant <russell@russellbryant.com>2008-01-10 23:10:00 +0000
commit0a5bfb9eb8b6fd241f85063f583bb514b7c2bdd9 (patch)
tree64b4c9c74ce1744b4312225cce13340030c0ebbe /codecs/codec_resample.c
parent45634bab418efc7c49de17e38439b4826ab0d066 (diff)
Fix the buffer_samples value. For signed linear, the number of samples needed
to fill the buffer is half the buffer size. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_resample.c')
-rw-r--r--codecs/codec_resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c
index 76641ce50..9be951c9c 100644
--- a/codecs/codec_resample.c
+++ b/codecs/codec_resample.c
@@ -206,7 +206,7 @@ static struct ast_translator slin8_to_slin16 = {
.framein = slin8_to_slin16_framein,
.sample = slin8_to_slin16_sample,
.desc_size = sizeof(struct slin8_to_slin16_pvt),
- .buffer_samples = OUTBUF_SIZE,
+ .buffer_samples = (OUTBUF_SIZE / sizeof(int16_t)),
.buf_size = OUTBUF_SIZE,
};