[Asterisk-cvs] asterisk/formats format_g729.c,1.15,1.16

markster at lists.digium.com markster at lists.digium.com
Fri Feb 4 09:45:02 CST 2005


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

Modified Files:
	format_g729.c 
Log Message:
Make sure 10 byte read is considered EOF not error (bug #3505)


Index: format_g729.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_g729.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- format_g729.c	19 Dec 2004 21:13:41 -0000	1.15
+++ format_g729.c	4 Feb 2005 15:46:01 -0000	1.16
@@ -134,7 +134,7 @@
 	s->fr.mallocd = 0;
 	s->fr.data = s->g729;
 	if ((res = read(s->fd, s->g729, 20)) != 20) {
-		if (res)
+		if (res && (res != 10))
 			ast_log(LOG_WARNING, "Short read (%d) (%s)!\n", res, strerror(errno));
 		return NULL;
 	}




More information about the svn-commits mailing list