[asterisk-commits] file: branch 1.4 r195206 - /branches/1.4/main/frame.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 18 10:51:27 CDT 2009


Author: file
Date: Mon May 18 10:51:22 2009
New Revision: 195206

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195206
Log:
Fix a typo which caused loss of audio when using G729 in some scenarios with a smoother present.

(closes issue #15105)
Reported by: bamby
Patches:
      process-vad-correctly.diff uploaded by bamby (license 430)

Modified:
    branches/1.4/main/frame.c

Modified: branches/1.4/main/frame.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/main/frame.c?view=diff&rev=195206&r1=195205&r2=195206
==============================================================================
--- branches/1.4/main/frame.c (original)
+++ branches/1.4/main/frame.c Mon May 18 10:51:22 2009
@@ -266,7 +266,7 @@
 	/* Make sure we have enough data */
 	if (s->len < s->size) {
 		/* Or, if this is a G.729 frame with VAD on it, send it immediately anyway */
-		if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->size % 10)))
+		if (!((s->flags & AST_SMOOTHER_FLAG_G729) && (s->len % 10)))
 			return NULL;
 	}
 	len = s->size;




More information about the asterisk-commits mailing list