[asterisk-commits] jrose: branch 11 r375288 - in /branches/11: ./ codecs/gsm/src/code.c

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


Author: jrose
Date: Mon Oct 22 12:22:18 2012
New Revision: 375288

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

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

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

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