[Freeswitch-svn] [commit] r7655 - in freeswitch/trunk/libs/voipcodecs/src: . voipcodecs

Freeswitch SVN mikej at freeswitch.org
Sun Feb 17 00:57:07 EST 2008


Author: mikej
Date: Sun Feb 17 00:57:07 2008
New Revision: 7655

Modified:
   freeswitch/trunk/libs/voipcodecs/src/lpc10_voicing.c
   freeswitch/trunk/libs/voipcodecs/src/voipcodecs/telephony.h

Log:
hints for the code analysis.

Modified: freeswitch/trunk/libs/voipcodecs/src/lpc10_voicing.c
==============================================================================
--- freeswitch/trunk/libs/voipcodecs/src/lpc10_voicing.c	(original)
+++ freeswitch/trunk/libs/voipcodecs/src/lpc10_voicing.c	Sun Feb 17 00:57:07 2008
@@ -303,7 +303,9 @@
         s->voice[1][1] = s->voice[2][1];
         s->maxmin = *maxamd / max(*minamd, 1.0f);
     }
-    /* Calculate voicing parameters twice per frame */
+	vc_assert(lpbuf);
+	vc_assert(inbuf);
+	/* Calculate voicing parameters twice per frame */
     vparms(vwin,
            &inbuf[inbuf_offset],
            &lpbuf[lpbuf_offset],

Modified: freeswitch/trunk/libs/voipcodecs/src/voipcodecs/telephony.h
==============================================================================
--- freeswitch/trunk/libs/voipcodecs/src/voipcodecs/telephony.h	(original)
+++ freeswitch/trunk/libs/voipcodecs/src/voipcodecs/telephony.h	Sun Feb 17 00:57:07 2008
@@ -55,6 +55,7 @@
 #define TRUE (!FALSE)
 #endif
 
+#include <assert.h>
 #if (_MSC_VER >= 1400)			// VC8+
 #define vc_assert(expr) assert(expr);__analysis_assume( expr )
 #else



More information about the Freeswitch-svn mailing list