[asterisk-commits] jrose: trunk r375291 - in /trunk: ./ codecs/gsm/src/code.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 22 12:31:23 CDT 2012


Author: jrose
Date: Mon Oct 22 12:31:20 2012
New Revision: 375291

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

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

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

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

Merged revisions 375288 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/codecs/gsm/src/code.c

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

Modified: trunk/codecs/gsm/src/code.c
URL: http://svnview.digium.com/svn/asterisk/trunk/codecs/gsm/src/code.c?view=diff&rev=375291&r1=375290&r2=375291
==============================================================================
--- trunk/codecs/gsm/src/code.c (original)
+++ trunk/codecs/gsm/src/code.c Mon Oct 22 12:31:20 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