[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r321513 - /team/irroot/t38gateway-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 31 12:11:03 CDT 2011
Author: mnicholson
Date: Tue May 31 12:10:57 2011
New Revision: 321513
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321513
Log:
check f->datalen instead of f->samples to detect null frames. For MODEM frames, samples will be 0
Modified:
team/irroot/t38gateway-trunk/res/res_fax_spandsp.c
Modified: team/irroot/t38gateway-trunk/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax_spandsp.c?view=diff&rev=321513&r1=321512&r2=321513
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax_spandsp.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax_spandsp.c Tue May 31 12:10:57 2011
@@ -717,7 +717,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