]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hints for the code analysis.
authorMichael Jerris <mike@jerris.com>
Sun, 17 Feb 2008 05:57:07 +0000 (05:57 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 17 Feb 2008 05:57:07 +0000 (05:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7655 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/voipcodecs/src/lpc10_voicing.c
libs/voipcodecs/src/voipcodecs/telephony.h

index d9127479a45005ddc40cafeffa514525f16c07ea..c8a8a2717e5a0eea6ffe6b10e9fc5ca67af9f924 100644 (file)
@@ -303,7 +303,9 @@ void lpc10_voicing(lpc10_encode_state_t *s,
         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],
index cad291008a652a2a23d10fc920aa6496a86cca47..f57fb2817d1fca24c6874f1315db53bf86c78d2e 100644 (file)
@@ -55,6 +55,7 @@ typedef int (span_tx_handler_t)(void *s, int16_t amp[], int max_len);
 #define TRUE (!FALSE)
 #endif
 \r
+#include <assert.h>\r
 #if (_MSC_VER >= 1400)                 // VC8+\r
 #define vc_assert(expr) assert(expr);__analysis_assume( expr )\r
 #else\r