diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-10 23:10:00 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-10 23:10:00 +0000 |
commit | 57ccc029981f152e6a8bae1e85012f53af17e2f6 (patch) | |
tree | 64b4c9c74ce1744b4312225cce13340030c0ebbe /codecs | |
parent | 4f0b7e0572a05b4f86c8652c73197a02221aed6b (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: http://svn.digium.com/svn/asterisk/trunk@97974 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_resample.c | 2 |
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, }; |