projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c6023
)
By default disable non-standard changes
author
Mark Spencer
<markster@digium.com>
Thu, 11 Mar 2004 20:56:26 +0000
(20:56 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 11 Mar 2004 20:56:26 +0000
(20:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2402
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
codecs/codec_adpcm.c
patch
|
blob
|
history
diff --git
a/codecs/codec_adpcm.c
b/codecs/codec_adpcm.c
index
0a94960
..
6ca656a
100755
(executable)
--- a/
codecs/codec_adpcm.c
+++ b/
codecs/codec_adpcm.c
@@
-104,6
+104,8
@@
decode (unsigned char encoded, short *ssindex, short *signal, unsigned char *rke
*signal = -2047;
*next = 0;
+
+#ifdef AUTO_RETURN
if( encoded & 0x7 )
*rkey = 0;
else if ( ++(*rkey) == 24 ) {
@@
-113,6
+115,7
@@
decode (unsigned char encoded, short *ssindex, short *signal, unsigned char *rke
else if (*signal < 0)
*next = 0x2;
}
+#endif
*ssindex = *ssindex + indsft[(encoded & 7)];
if (*ssindex < 0)