From: Automerge script Date: Mon, 22 Oct 2012 17:22:38 +0000 (+0000) Subject: Merged revisions 375273 via svnmerge from X-Git-Tag: 10.11.0-digiumphones-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5d03fe51afb4cb311c72c48c456a9885e81f551;p=thirdparty%2Fasterisk.git Merged revisions 375273 via svnmerge from file:///srv/subversion/repos/asterisk/branches/10 ................ r375273 | jrose | 2012-10-22 12:08:49 -0500 (Mon, 22 Oct 2012) | 10 lines 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 ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@375290 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/gsm/src/code.c b/codecs/gsm/src/code.c index 4d195dfbd0..9f6b00f430 100644 --- a/codecs/gsm/src/code.c +++ b/codecs/gsm/src/code.c @@ -58,10 +58,11 @@ void Gsm_Coder P8((S,s,LARc,Nc,bc,Mc,xmaxc,xMc), 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);