[Asterisk-cvs] asterisk/formats format_g729.c,1.12,1.12.2.1

russell at lists.digium.com russell at lists.digium.com
Sun Feb 6 22:28:47 CST 2005


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

Modified Files:
      Tag: v1-0
	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.12
retrieving revision 1.12.2.1
diff -u -d -r1.12 -r1.12.2.1
--- format_g729.c	22 Jun 2004 18:49:00 -0000	1.12
+++ format_g729.c	7 Feb 2005 04:29:19 -0000	1.12.2.1
@@ -130,7 +130,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