[asterisk-commits] kmoore: trunk r351862 - in /trunk: ./ codecs/ilbc/iLBC_test.c

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


Author: kmoore
Date: Fri Jan 20 13:36:04 2012
New Revision: 351862

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

Merged revisions 351861 from http://svn.asterisk.org/svn/asterisk/branches/10

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

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

Modified: trunk/codecs/ilbc/iLBC_test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/codecs/ilbc/iLBC_test.c?view=diff&rev=351862&r1=351861&r2=351862
==============================================================================
--- trunk/codecs/ilbc/iLBC_test.c (original)
+++ trunk/codecs/ilbc/iLBC_test.c Fri Jan 20 13:36:04 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