[svn-commits] seanbright: branch 1.8 r358484 - /branches/1.8/codecs/codec_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Mar 7 10:11:48 CST 2012
Author: seanbright
Date: Wed Mar 7 10:11:46 2012
New Revision: 358484
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=358484
Log:
Make sure that if the wctc4xxp returns more than a single packet, we update
the number of samples in the returned frame accordingly.
Acked-by: Shaun Ruffell <sruffell at digium.com>
Modified:
branches/1.8/codecs/codec_dahdi.c
Modified: branches/1.8/codecs/codec_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/codecs/codec_dahdi.c?view=diff&rev=358484&r1=358483&r2=358484
==============================================================================
--- branches/1.8/codecs/codec_dahdi.c (original)
+++ branches/1.8/codecs/codec_dahdi.c Wed Mar 7 10:11:46 2012
@@ -254,13 +254,13 @@
}
} else {
pvt->f.datalen = res;
- pvt->f.samples = dahdip->required_samples;
pvt->f.frametype = AST_FRAME_VOICE;
pvt->f.subclass.codec = 1 << (pvt->t->dstfmt);
pvt->f.mallocd = 0;
pvt->f.offset = AST_FRIENDLY_OFFSET;
pvt->f.src = pvt->t->name;
pvt->f.data.ptr = pvt->outbuf.c;
+ pvt->f.samples = ast_codec_get_samples(&pvt->f);
pvt->samples = 0;
pvt->datalen = 0;
More information about the svn-commits
mailing list