[Asterisk-cvs] asterisk/formats format_g729.c,1.8,1.9

markster at lists.digium.com markster at lists.digium.com
Wed Jan 28 15:40:44 CST 2004


Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv30163/formats

Modified Files:
	format_g729.c 
Log Message:
Various minor cleanups (bug #931)


Index: format_g729.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_g729.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- format_g729.c	22 Jan 2004 21:30:04 -0000	1.8
+++ format_g729.c	28 Jan 2004 21:32:48 -0000	1.9
@@ -150,12 +150,12 @@
 		ast_log(LOG_WARNING, "Asked to write non-G729 frame (%d)!\n", f->subclass);
 		return -1;
 	}
-	if (f->datalen % 20) {
-		ast_log(LOG_WARNING, "Invalid data length, %d, should be multiple of 20\n", f->datalen);
+	if (f->datalen % 10) {
+		ast_log(LOG_WARNING, "Invalid data length, %d, should be multiple of 10\n", f->datalen);
 		return -1;
 	}
 	if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) {
-			ast_log(LOG_WARNING, "Bad write (%d/20): %s\n", res, strerror(errno));
+			ast_log(LOG_WARNING, "Bad write (%d/10): %s\n", res, strerror(errno));
 			return -1;
 	}
 	return 0;




More information about the svn-commits mailing list