[asterisk-commits] mnicholson: branch irroot/t38gateway-1.8 r321514 - /team/irroot/t38gateway-1....
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 31 12:13:01 CDT 2011
Author: mnicholson
Date: Tue May 31 12:12:55 2011
New Revision: 321514
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321514
Log:
check f->datalen instead of f->samples to detect null frames. For MODEM frames, samples will be 0
Modified:
team/irroot/t38gateway-1.8/res/res_fax_spandsp.c
Modified: team/irroot/t38gateway-1.8/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-1.8/res/res_fax_spandsp.c?view=diff&rev=321514&r1=321513&r2=321514
==============================================================================
--- team/irroot/t38gateway-1.8/res/res_fax_spandsp.c (original)
+++ team/irroot/t38gateway-1.8/res/res_fax_spandsp.c Tue May 31 12:12:55 2011
@@ -718,7 +718,7 @@
struct spandsp_pvt *p = s->tech_pvt;
/*invalid frame*/
- if (!f->data.ptr || !f->samples) {
+ if (!f->data.ptr || !f->datalen) {
return 0;
}
More information about the asterisk-commits
mailing list