projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45634ba
)
Fix the buffer_samples value. For signed linear, the number of samples needed
author
Russell Bryant
<russell@russellbryant.com>
Thu, 10 Jan 2008 23:10:00 +0000
(23:10 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Thu, 10 Jan 2008 23:10:00 +0000
(23:10 +0000)
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
codecs/codec_resample.c
patch
|
blob
|
history
diff --git
a/codecs/codec_resample.c
b/codecs/codec_resample.c
index
76641ce
..
9be951c
100644
(file)
--- 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,
};