[asterisk-commits] kmoore: branch 10 r351861 - in /branches/10: ./ codecs/ilbc/iLBC_test.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 20 13:35:14 CST 2012


Author: kmoore
Date: Fri Jan 20 13:35:11 2012
New Revision: 351861

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=351861
Log:
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.
........

Merged revisions 351860 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/codecs/ilbc/iLBC_test.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/codecs/ilbc/iLBC_test.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/codecs/ilbc/iLBC_test.c?view=diff&rev=351861&r1=351860&r2=351861
==============================================================================
--- branches/10/codecs/ilbc/iLBC_test.c (original)
+++ branches/10/codecs/ilbc/iLBC_test.c Fri Jan 20 13:35:11 2012
@@ -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 */




More information about the asterisk-commits mailing list