mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@375288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -58,10 +58,11 @@ void Gsm_Coder P8((S,s,LARc,Nc,bc,Mc,xmaxc,xMc),
|
|||||||
word * dp = S->dp0 + 120; /* [ -120...-1 ] */
|
word * dp = S->dp0 + 120; /* [ -120...-1 ] */
|
||||||
word * dpp = dp; /* [ 0...39 ] */
|
word * dpp = dp; /* [ 0...39 ] */
|
||||||
|
|
||||||
static word e[50];
|
word e[50];
|
||||||
|
|
||||||
word so[160];
|
word so[160];
|
||||||
|
|
||||||
|
memset(e,0,sizeof e);
|
||||||
Gsm_Preprocess (S, s, so);
|
Gsm_Preprocess (S, s, so);
|
||||||
Gsm_LPC_Analysis (S, so, LARc);
|
Gsm_LPC_Analysis (S, so, LARc);
|
||||||
Gsm_Short_Term_Analysis_Filter (S, LARc, so);
|
Gsm_Short_Term_Analysis_Filter (S, LARc, so);
|
||||||
|
|||||||
Reference in New Issue
Block a user