[asterisk-commits] russell: trunk r97974 - /trunk/codecs/codec_resample.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 10 17:10:01 CST 2008


Author: russell
Date: Thu Jan 10 17:10:00 2008
New Revision: 97974

URL: http://svn.digium.com/view/asterisk?view=rev&rev=97974
Log:
Fix the buffer_samples value.  For signed linear, the number of samples needed
to fill the buffer is half the buffer size.

Modified:
    trunk/codecs/codec_resample.c

Modified: trunk/codecs/codec_resample.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/codec_resample.c?view=diff&rev=97974&r1=97973&r2=97974
==============================================================================
--- trunk/codecs/codec_resample.c (original)
+++ trunk/codecs/codec_resample.c Thu Jan 10 17:10:00 2008
@@ -206,7 +206,7 @@
 	.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,
 };
 




More information about the asterisk-commits mailing list