From 2cefb605051b4a95b3a023d9ccbf91fd76f72405 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Fri, 20 Jan 2012 19:34:20 +0000 Subject: [PATCH] More corrections for the ilbc code These changes are in a file that is not compiled by default, and so were missed on earlier checks. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@351860 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/ilbc/iLBC_test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/codecs/ilbc/iLBC_test.c b/codecs/ilbc/iLBC_test.c index 473cc7b68a..92d6c0ddc7 100644 --- a/codecs/ilbc/iLBC_test.c +++ b/codecs/ilbc/iLBC_test.c @@ -248,7 +248,9 @@ /* write byte file */ - fwrite(encoded_data, sizeof(unsigned char), len, efileid); + if (fwrite(encoded_data, sizeof(unsigned char), len, efileid) != len) { + fprintf(stderr, "Failure in fwritef\n"); + } /* get channel data if provided */ if (argc==6) { @@ -280,7 +282,9 @@ /* write output file */ - fwrite(decoded_data,sizeof(short),len,ofileid); + if (fwrite(decoded_data,sizeof(short),len,ofileid) != len) { + fprintf(stderr, "Failure in fwritef\n"); + } } /* Runtime statistics */ -- 2.47.2