[Asterisk-cvs] asterisk/formats format_vox.c,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Sat Sep 20 21:58:17 CDT 2003


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

Modified Files:
	format_vox.c 
Log Message:
Fix ADPCM file writing


Index: format_vox.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_vox.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- format_vox.c	8 Sep 2003 16:48:07 -0000	1.6
+++ format_vox.c	21 Sep 2003 02:59:26 -0000	1.7
@@ -274,7 +274,7 @@
 		ast_log(LOG_WARNING, "Invalid frame of data (< 3 bytes long) from %s\n", f->src);
 		return -1;
 	}
-	if ((res = write(fs->fd, f->data + 3, f->datalen)) != f->datalen) {
+	if ((res = write(fs->fd, f->data + 3, f->datalen - 3)) != f->datalen - 3) {
 			ast_log(LOG_WARNING, "Bad write (%d/%d): %s\n", res, f->datalen, strerror(errno));
 			return -1;
 	}




More information about the svn-commits mailing list