From 35118d56ad1ebc69538b594ace858317d9ed8725 Mon Sep 17 00:00:00 2001 From: markster Date: Fri, 4 Feb 2005 15:46:01 +0000 Subject: Make sure 10 byte read is considered EOF not error (bug #3505) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4965 f38db490-d61c-443f-a65b-d21fe96a405b --- formats/format_g729.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/format_g729.c b/formats/format_g729.c index 28acc92a9..5e79c00e1 100755 --- a/formats/format_g729.c +++ b/formats/format_g729.c @@ -134,7 +134,7 @@ static struct ast_frame *g729_read(struct ast_filestream *s, int *whennext) 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; } -- cgit v1.2.3