From 57ccc029981f152e6a8bae1e85012f53af17e2f6 Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 10 Jan 2008 23:10:00 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@97974 f38db490-d61c-443f-a65b-d21fe96a405b --- codecs/codec_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }; -- cgit v1.2.3