[asterisk-commits] jrose: branch 1.8 r375272 - /branches/1.8/codecs/gsm/src/code.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 22 11:49:35 CDT 2012


Author: jrose
Date: Mon Oct 22 11:49:27 2012
New Revision: 375272

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375272
Log:
GSM: Fix encoding problems with GSM

(closes issue ASTERISK-20457)
Reported by: Richard Miller
Patches:
	code.patch uploaded by Richard Miller (license 5685)

Modified:
    branches/1.8/codecs/gsm/src/code.c

Modified: branches/1.8/codecs/gsm/src/code.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/codecs/gsm/src/code.c?view=diff&rev=375272&r1=375271&r2=375272
==============================================================================
--- branches/1.8/codecs/gsm/src/code.c (original)
+++ branches/1.8/codecs/gsm/src/code.c Mon Oct 22 11:49:27 2012
@@ -58,10 +58,11 @@
 	word	* dp  = S->dp0 + 120;	/* [ -120...-1 ] */
 	word	* dpp = dp;		/* [ 0...39 ]	 */
 
-	static word e[50];
+	word	e[50];
 
 	word	so[160];
 
+	memset(e,0,sizeof e);
 	Gsm_Preprocess			(S, s, so);
 	Gsm_LPC_Analysis		(S, so, LARc);
 	Gsm_Short_Term_Analysis_Filter	(S, LARc, so);




More information about the asterisk-commits mailing list