[Asterisk-cvs] asterisk/formats format_ilbc.c,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Wed Apr 21 23:35:11 CDT 2004


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

Modified Files:
	format_ilbc.c 
Log Message:
Small fixes from bkw


Index: format_ilbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_ilbc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- format_ilbc.c	22 Apr 2004 03:34:13 -0000	1.1
+++ format_ilbc.c	22 Apr 2004 03:39:54 -0000	1.2
@@ -157,7 +157,7 @@
 		return -1;
 	}
 	if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) {
-			ast_log(LOG_WARNING, "Bad write (%d/23): %s\n", res, strerror(errno));
+			ast_log(LOG_WARNING, "Bad write (%d/50): %s\n", res, strerror(errno));
 			return -1;
 	}
 	return 0;
@@ -176,7 +176,7 @@
 	cur = lseek(fs->fd, 0, SEEK_CUR);
 	max = lseek(fs->fd, 0, SEEK_END);
 	
-	bytes = 36 * (sample_offset / 240);
+	bytes = 50 * (sample_offset / 240);
 	if (whence == SEEK_SET)
 		offset = bytes;
 	else if (whence == SEEK_CUR || whence == SEEK_FORCECUR)




More information about the svn-commits mailing list